Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
}
/**