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
|
@ -43,12 +43,17 @@
|
|||
render: function(data) {
|
||||
this._dirInfo = data.dirInfo;
|
||||
|
||||
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 New Issue