Skip to content

Commit

Permalink
fix(ui): correct link to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye committed Mar 14, 2024
1 parent f020520 commit 2f65a70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/src/components/admin/stats/Usages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<el-text size="small">
{{ namespaces }}
</el-text>
<router-link :to="{name: 'flows/list'}">
<router-link :to="{name: namespaceRoute}">
<el-button class="wh-15" :icon="TextSearchVariant" link />
</router-link>
</el-row>
Expand Down Expand Up @@ -155,6 +155,15 @@
flows() {
return this.usages.flows?.count ?? 0;
},
namespaceRoute() {
try {
this.$router.resolve({name: "namespaces/list"})
return "namespaces/list";
} catch (error) {
return "flows/list"
}
},
tasks() {
return this.aggregateValues(this.usages.flows?.taskTypeCount);
},
Expand Down

0 comments on commit 2f65a70

Please sign in to comment.