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:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-22 12:18:12 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-22 12:18:12 +0300
commitd0ad124505946f0ffd94c7eb374265e7e535539d (patch)
tree9de4a3956ba6d278c32c4b4613c16bef1a3716c4
parent8ba36692bf71628274a9e32037a6ee195f484b08 (diff)
parent22ca4c5654a383d2e040ed81632f1ef7726a4433 (diff)
Merge pull request #23433 from owncloud/stable82_fix_22128
Do not show hash if parent is shared by link
-rw-r--r--core/js/sharedialogshareelistview.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index f18d7fde067..b4c70fe418a 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -129,10 +129,23 @@
}
var displayName = this.model.getShareWithDisplayName(shareIndex);
if(!_.isUndefined(this._collections[id])) {
- this._collections[id].text = this._collections[id].text + ", " + displayName;
+ if (this.model.getShareType(shareIndex) === OC.Share.SHARE_TYPE_LINK) {
+ this._collections[id].text = this._collections[id].text + ", " + t('core', 'by link');
+ } else {
+ this._collections[id].text = this._collections[id].text + ", " + displayName;
+ }
} else {
this._collections[id] = {};
- this._collections[id].text = t('core', 'Shared in {item} with {user}', {'item': id, user: displayName});
+ if (this.model.getShareType(shareIndex) === OC.Share.SHARE_TYPE_LINK) {
+ this._collections[id].text = t('core', 'Shared in {item} by link', {
+ 'item': id
+ });
+ } else {
+ this._collections[id].text = t('core', 'Shared in {item} with {user}', {
+ 'item': id,
+ user: displayName
+ });
+ }
this._collections[id].id = id;
this._collections[id].isCollection = true;
}