Skip to content

Commit d039366

Browse files
breadcrumb: reset to main view on home icon click
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 28088aa commit d039366

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ui/src/components/header/ProjectMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default {
134134
}
135135
136136
&-icon {
137-
font-size: 20px;
137+
font-size: 18px;
138138
line-height: 1;
139139
padding-top: 5px;
140140
padding-right: 5px;

ui/src/components/widgets/Breadcrumb.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
v-if="item && item.name"
2323
:to="{ path: item.path === '' ? '/' : item.path }"
2424
>
25-
<a-icon v-if="index == 0" :type="item.meta.icon" />
25+
<a-icon v-if="index == 0" :type="item.meta.icon" style="font-size: 16px" @click="resetToMainView" />
2626
{{ $t(item.meta.title) }}
2727
</router-link>
2828
<span v-else-if="$route.params.id">
@@ -63,6 +63,10 @@ export default {
6363
this.$route.matched.forEach((item) => {
6464
this.breadList.push(item)
6565
})
66+
},
67+
resetToMainView () {
68+
this.$store.dispatch('SetProject', {})
69+
this.$store.dispatch('ToggleTheme', 'light')
6670
}
6771
}
6872
}

0 commit comments

Comments
 (0)