summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
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/templates
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/templates')
-rw-r--r--apps/files/templates/appnavigation.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index 5f1baafaf8a..f88bf7866f4 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -8,10 +8,11 @@
<li data-id="<?php p(isset($item['href']) ? $item['href'] : $item['id']) ?>"
class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?> <?php if($item['enableQuickaccess']=='true'){ ?> open<?php } ?>"
- <?php if(isset($item['folderPosition'])){ ?> folderPos="<?php p($item['folderPosition']);?>"<?php } ?>>
+ <?php if(isset($item['folderPosition'])){ ?> folderPos="<?php p($item['folderPosition']);?>"<?php } ?>
+ <?php if($item['id']=='favorites'){?>id="favorites-toggle"<?php } ?>>
<?php if($item['id']=='favorites'){?>
- <button id="button-collapseQuickAccess" class="collapse"></button><?php } ?>
+ <button id="button-collapseQuickAccess" class="collapse" <?php if($item['favoritescount']==0){ ?> style="display: none"<?php } ?>></button><?php } ?>
<a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"><?php p($item['name']);?></a>