diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index a970415539..823c49e7e6 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -125,6 +125,7 @@
' ' +
'' +
'' +
+ '{{#if isNoteAvailable}}' +
'
' +
'' +
' ' +
@@ -138,6 +139,7 @@
' ' +
'' +
'' +
+ '{{/if}}' +
'' +
'{{unshareLabel}}' +
'' +
@@ -276,6 +278,7 @@
modSeed: shareType !== OC.Share.SHARE_TYPE_USER && (shareType !== OC.Share.SHARE_TYPE_CIRCLE || shareWithAvatar),
isRemoteShare: shareType === OC.Share.SHARE_TYPE_REMOTE,
isRemoteGroupShare: shareType === OC.Share.SHARE_TYPE_REMOTE_GROUP,
+ isNoteAvailable: shareType !== OC.Share.SHARE_TYPE_REMOTE && shareType !== OC.Share.SHARE_TYPE_REMOTE_GROUP,
isMailShare: shareType === OC.Share.SHARE_TYPE_EMAIL,
isCircleShare: shareType === OC.Share.SHARE_TYPE_CIRCLE,
isFileSharedByMail: shareType === OC.Share.SHARE_TYPE_EMAIL && !this.model.isFolder(),
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 60e9211752..9fa1847d3d 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -58,9 +58,6 @@
/** @type {object} **/
linkShareView: undefined,
- /** @type {object} **/
- expirationView: undefined,
-
/** @type {object} **/
shareeListView: undefined,
@@ -104,14 +101,12 @@
var subViewOptions = {
model: this.model,
- parent: this,
configModel: this.configModel
};
var subViews = {
resharerInfoView: 'ShareDialogResharerInfoView',
linkShareView: 'ShareDialogLinkShareView',
- expirationView: 'ShareDialogExpirationView',
shareeListView: 'ShareDialogShareeListView'
};
@@ -671,9 +666,6 @@
this.linkShareView.$el = this.$el.find('.linkShareView');
this.linkShareView.render();
- this.expirationView.$el = this.$el.find('.expirationView');
- this.expirationView.render();
-
this.shareeListView.$el = this.$el.find('.shareeListView');
this.shareeListView.render();