summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2018-06-18 12:35:20 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-12 16:49:38 +0200
commit60e6ac3b6e8597a5cc63c9f60c943fa122b70698 (patch)
tree560b6c2306c96f7203249cb189cf2ffa39e14b47 /apps/files/lib
parent9cd4b53a51c6b1ed4835df5976f7310b6fb3f75f (diff)
downloadnextcloud-server-60e6ac3b6e8597a5cc63c9f60c943fa122b70698.tar.gz
nextcloud-server-60e6ac3b6e8597a5cc63c9f60c943fa122b70698.zip
Fixed css-flashing
Signed-off-by: fnuesse <felix.nuesse@t-online.de> Fixed menu if initially empty Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/ViewController.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index c218063f979..b427178ec57 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -184,12 +184,17 @@ class ViewController extends Controller {
$FavoritesFolderCount=sizeof($favElements['folders']);
+ $collapsClasses='';
+ if($FavoritesFolderCount>0){
+ $collapsClasses='collapsible';
+ }
+
\OCA\Files\App::getNavigationManager()->add(
[
'id' => 'favorites',
'appname' => 'files',
'script' => 'simplelist.php',
- 'classes' => 'collapsible',
+ 'classes' => $collapsClasses,
'enableQuickaccess' => $expanded,
'quickaccessSortingStrategy' => $sorting,
'quickaccessSortingReverse' => $reverseListSetting,