Skip to content

Commit

Permalink
feat: hide home-specific actions in other pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed May 11, 2024
1 parent f653820 commit d3116cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@
</router-link>
<div class="navbar-end">
<div class="buttons flex space-x-2">
<button @click="setLayout"
<button @click="setLayout" v-if="route.name == 'home'"
:title="atlasStore.layout == 'list' ? 'Switch to grid view' : 'Switch to list view'"
class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
<i class="material-icons">{{ atlasStore.layout == 'list' ? 'view_list' : 'view_module' }}</i>
</button>
<button @click="updateCache" title="Refresh"
<button @click="updateCache" title="Refresh" v-if="route.name == 'home'"
class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
<i class="material-icons">refresh</i>
</button>
<a href="https://vib.vanillaos.org/" target="_blank"
class="flex items-center p-2 text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
<i class="material-icons">help</i>
</a>
</div>
</div>
</nav>
Expand Down

0 comments on commit d3116cf

Please sign in to comment.