Revert "perf: remove ticket feature"

This commit is contained in:
feng626
2024-04-28 18:23:30 +08:00
committed by GitHub
parent 6ef985207c
commit 82b14b6542

View File

@@ -14,7 +14,6 @@ import Ticket from './Ticket.vue'
import Ops from './Ops.vue'
import Chat from './Chat.vue'
import VirtualApp from './VirtualApp.vue'
import { mapGetters } from 'vuex'
export default {
name: 'Feature',
@@ -30,7 +29,7 @@ export default {
{
title: this.$t('Ticket'),
name: 'Ticket',
hidden: !this.ticketsEnabled
hidden: !this.$store.getters.hasValidLicense
},
{
title: this.$t('AppOps'),
@@ -53,16 +52,6 @@ export default {
}
]
}
},
computed: {
...mapGetters([
'publicSettings'
]),
ticketsEnabled() {
return this.publicSettings['TICKETS_ENABLED'] &&
this.$hasLicense() &&
this.$hasPerm('tickets.view_ticket')
}
}
}
</script>