aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/models/Share.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-11 10:53:10 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-11 12:30:15 +0100
commit31ddfb02946ee9a84d02aab1b01817de2ea83282 (patch)
treeaa1903e974482efbcc18ee3f497d292cef981168 /apps/files_sharing/src/models/Share.js
parent7f06a0cf8e58a89c7fa78dd4bf00d76a120039ab (diff)
downloadnextcloud-server-31ddfb02946ee9a84d02aab1b01817de2ea83282.tar.gz
nextcloud-server-31ddfb02946ee9a84d02aab1b01817de2ea83282.zip
Fix SharingInput Multiselect
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/models/Share.js')
-rw-r--r--apps/files_sharing/src/models/Share.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js
index db9351fb52c..63653d4b6e6 100644
--- a/apps/files_sharing/src/models/Share.js
+++ b/apps/files_sharing/src/models/Share.js
@@ -150,8 +150,17 @@ export default class Share {
|| this.#share.share_with
}
+ /**
+ * Unique display name in case of multiple
+ * duplicates results with the same name.
+ *
+ * @returns {string}
+ * @readonly
+ * @memberof Share
+ */
get shareWithDisplayNameUnique() {
- return this.#share.share_with_displayname_unique || this.#share.share_with
+ return this.#share.share_with_displayname_unique
+ || this.#share.share_with
}
/**