Merge pull request #3887 from jumpserver/revert-3886-pr@v4@ticket

Revert "perf: remove ticket feature"
This commit is contained in:
feng626 2024-04-28 18:26:33 +08:00 committed by GitHub
commit 077ea93bc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>