mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-11 11:31:59 +00:00
feat: facelive add license check
This commit is contained in:
parent
7ab20c5885
commit
bac35c69bf
@ -19,6 +19,7 @@
|
|||||||
type="info"
|
type="info"
|
||||||
/>
|
/>
|
||||||
<QuickActions
|
<QuickActions
|
||||||
|
v-if="biometricFeaturesActions.some(action => action.has)"
|
||||||
:title="$tc('BiometricFeatures')"
|
:title="$tc('BiometricFeatures')"
|
||||||
type="warning"
|
type="warning"
|
||||||
:actions="biometricFeaturesActions"
|
:actions="biometricFeaturesActions"
|
||||||
@ -85,13 +86,17 @@ export default {
|
|||||||
biometricFeaturesActions: [
|
biometricFeaturesActions: [
|
||||||
{
|
{
|
||||||
title: this.$t('FacialFeatures'),
|
title: this.$t('FacialFeatures'),
|
||||||
|
has: this.$store.getters.publicSettings.FACE_RECOGNITION_ENABLED &&
|
||||||
|
this.$store.getters.publicSettings.XPACK_LICENSE_EDITION_ULTIMATE,
|
||||||
attrs: {
|
attrs: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
label: this.$store.state.users.profile.is_face_code_set ? this.$t('Unbind') : this.$t('Bind')
|
label: this.$store.state.users.profile.is_face_code_set ? this.$t('Unbind') : this.$t('Bind')
|
||||||
},
|
},
|
||||||
callbacks: {
|
callbacks: {
|
||||||
click: () => {
|
click: () => {
|
||||||
const next_url = this.$store.state.users.profile.is_face_code_set ? '/core/auth/profile/face/disable/' : '/core/auth/profile/face/enable/'
|
const next_url = this.$store.state.users.profile.is_face_code_set
|
||||||
|
? '/core/auth/profile/face/disable/'
|
||||||
|
: '/core/auth/profile/face/enable/'
|
||||||
window.open(next_url, '_blank')
|
window.open(next_url, '_blank')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user