mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-10 19:12:02 +00:00
Merge pull request #3887 from jumpserver/revert-3886-pr@v4@ticket
Revert "perf: remove ticket feature"
This commit is contained in:
commit
077ea93bc3
@ -14,7 +14,6 @@ import Ticket from './Ticket.vue'
|
|||||||
import Ops from './Ops.vue'
|
import Ops from './Ops.vue'
|
||||||
import Chat from './Chat.vue'
|
import Chat from './Chat.vue'
|
||||||
import VirtualApp from './VirtualApp.vue'
|
import VirtualApp from './VirtualApp.vue'
|
||||||
import { mapGetters } from 'vuex'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Feature',
|
name: 'Feature',
|
||||||
@ -30,7 +29,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('Ticket'),
|
title: this.$t('Ticket'),
|
||||||
name: 'Ticket',
|
name: 'Ticket',
|
||||||
hidden: !this.ticketsEnabled
|
hidden: !this.$store.getters.hasValidLicense
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('AppOps'),
|
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>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user