Skip to content

Commit ce62238

Browse files
committed
[native] fix(Tree): Only show current profile label in tree view if there is more than one profile
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 4b20abf commit ce62238

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/ui/views/native/Tree.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
icon
3737
:disabled="Boolean(syncing) || Boolean(scheduled) || !currentAccount"
3838
@click="onTriggerSync">
39-
<v-icon :class="{'sync--active': Boolean(syncing)}">
39+
<v-icon :class="{ 'sync--active': Boolean(syncing) }">
4040
{{ scheduled ? 'mdi-timer-sync-outline' : 'mdi-sync' }}
4141
</v-icon>
4242
</v-btn>
@@ -56,7 +56,10 @@
5656
</v-btn>
5757
<v-btn
5858
icon
59-
@click="showSearch = !showSearch; searchQuery = ''">
59+
@click="
60+
showSearch = !showSearch
61+
searchQuery = ''
62+
">
6063
<v-icon>mdi-magnify</v-icon>
6164
</v-btn>
6265
<v-menu
@@ -115,7 +118,7 @@
115118
fixed
116119
:value="syncProgress * 100 || 0"
117120
color="blue darken-1" />
118-
<v-card>
121+
<v-card v-if="breadcrumbs.length > 1 || numAccounts > 1">
119122
<Breadcrumbs
120123
v-if="breadcrumbs.length > 1"
121124
:tree="tree"
@@ -365,6 +368,9 @@ export default {
365368
!this.tree
366369
)
367370
},
371+
numAccounts() {
372+
return Object.keys(this.$store.state.accounts).length
373+
},
368374
tree() {
369375
return this.$store.state.tree
370376
},

0 commit comments

Comments
 (0)