mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
the root folder must not be shared
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
5bf7e5533d
commit
36cf779140
1 changed files with 11 additions and 6 deletions
|
|
@ -43,12 +43,17 @@
|
|||
render: function(data) {
|
||||
this._dirInfo = data.dirInfo;
|
||||
|
||||
var isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0;
|
||||
|
||||
this.$el.html(this.template({
|
||||
isShared: isShared
|
||||
}));
|
||||
this.delegateEvents();
|
||||
if (this._dirInfo !== null && (this._dirInfo.path !== '/' || this._dirInfo.name !== '')) {
|
||||
var isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0;
|
||||
this.$el.html(this.template({
|
||||
isShared: isShared
|
||||
}));
|
||||
this.$el.show();
|
||||
this.delegateEvents();
|
||||
} else {
|
||||
this.$el.empty();
|
||||
this.$el.hide();
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue