summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-13 11:36:24 +0200
committerVincent Petry <pvince81@owncloud.com>2015-10-13 11:36:24 +0200
commitecb10db0391c98ffe7c4c0abfaeda93d066cfc02 (patch)
tree98ab4352515c5f75b19193b2512187ee556d9343 /apps/files/js
parent1cb4f1080a57bfffe5d71d7496b61184434ff84d (diff)
downloadnextcloud-server-ecb10db0391c98ffe7c4c0abfaeda93d066cfc02.tar.gz
nextcloud-server-ecb10db0391c98ffe7c4c0abfaeda93d066cfc02.zip
Remove controls for file lists that don't need it
Remove controls from sharing overview and favorite file lists which don't display paths.
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6cf82391baf..246c5bd6290 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -226,7 +226,11 @@
}
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);
- this.$el.find('#controls').prepend(this.breadcrumb.$el);
+ var $controls = this.$el.find('#controls');
+ if ($controls.length > 0) {
+ $controls.prepend(this.breadcrumb.$el);
+ this.$table.addClass('has-controls');
+ }
this._renderNewButton();