summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogview.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-08-21 20:29:12 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:26 +0200
commit6af6024e172bc4810691f54ccaa2da6912395962 (patch)
treedf5b917f8d398becb1227052a6b95e7ab369d34e /core/js/sharedialogview.js
parent8f3884145e3992ec5195d6bdd7c4c97926c0c582 (diff)
downloadnextcloud-server-6af6024e172bc4810691f54ccaa2da6912395962.tar.gz
nextcloud-server-6af6024e172bc4810691f54ccaa2da6912395962.zip
integraton noshare part into ShareDialogLinkShareView
Diffstat (limited to 'core/js/sharedialogview.js')
-rw-r--r--core/js/sharedialogview.js25
1 files changed, 3 insertions, 22 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index b33130a83dc..63c3473252f 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -24,11 +24,7 @@
'{{{remoteShareInfo}}}' +
'<ul id="shareWithList">' +
'</ul>' +
- '{{#if shareAllowed}}' +
'<div class="linkShareView"></div>' +
- '{{else}}' +
- '{{{noSharing}}}' +
- '{{/if}}' +
'<div class="expirationView"></div>'
;
@@ -114,21 +110,17 @@
shareLabel: t('core', 'Share'),
sharePlaceholder: this._renderSharePlaceholderPart(),
remoteShareInfo: this._renderRemoteShareInfoPart(),
- shareAllowed: this.model.hasSharePermission(),
- noSharing: this._renderNoSharing(),
}));
this.resharerInfoView.$el = this.$el.find('.resharerInfoView');
this.resharerInfoView.render();
+ this.linkShareView.$el = this.$el.find('.linkShareView');
+ this.linkShareView.render();
+
this.expirationView.$el = this.$el.find('.expirationView');
this.expirationView.render();
- if(this.model.hasSharePermission()) {
- this.linkShareView.$el = this.$el.find('.linkShareView');
- this.linkShareView.render();
- }
-
this.$el.find('.hasTooltip').tooltip();
if(this.configModel.areAvatarsEnabled()) {
this.$el.find('.avatar').avatar(this.model.getReshareOwner, 32);
@@ -169,17 +161,6 @@
return sharePlaceholder;
},
- _renderNoSharing: function () {
- var noSharing = '';
- if(!this.model.hasSharePermission()) {
- var noSharingTemplate = this._getTemplate('noSharing', TEMPLATE_NO_SHARING);
- noSharing = noSharingTemplate({
- placeholder: t('core', 'Resharing is not allowed')
- });
- }
- return noSharing;
- },
-
/**
*
* @param {string} key - an identifier for the template