Skip to content

Commit

Permalink
fix: history nav not shown when not enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Bassett <[email protected]>
  • Loading branch information
cadriel committed May 13, 2021
1 parent 58973fd commit 00d2b53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/layout/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
</app-nav-item>

<app-nav-item
v-if="supportsHistory"
icon="$history"
to="/history">
{{ $t('app.general.title.history') }}
Expand Down Expand Up @@ -109,6 +110,10 @@ import StateMixin from '@/mixins/state'
export default class AppBar extends Mixins(StateMixin) {
menu = false
get supportsHistory () {
return this.$store.getters['server/componentSupport']('history')
}
get instances () {
return this.$store.state.config.instances
}
Expand Down
6 changes: 5 additions & 1 deletion src/components/layout/AppToolsDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</v-list-item-content>
</v-list-item>

<v-list-item to="/history" class="d-sm-flex d-md-none">
<v-list-item to="/history" class="d-sm-flex d-md-none" v-if="supportsHistory">
<v-list-item-icon>
<v-icon>$history</v-icon>
</v-list-item-icon>
Expand Down Expand Up @@ -87,6 +87,10 @@ export default class AppToolsDrawer extends Mixins(StateMixin) {
@Prop({ type: Boolean, default: false })
value!: boolean
get supportsHistory () {
return this.$store.getters['server/componentSupport']('history')
}
get instanceName () {
return this.$store.state.config.uiSettings.general.instanceName
}
Expand Down

0 comments on commit 00d2b53

Please sign in to comment.