Skip to content

Commit

Permalink
feat: facelive add license check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron3S authored and BaiJiangJie committed Dec 19, 2024
1 parent 7ab20c5 commit bac35c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/profile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
type="info"
/>
<QuickActions
v-if="biometricFeaturesActions.some(action => action.has)"
:title="$tc('BiometricFeatures')"
type="warning"
:actions="biometricFeaturesActions"
Expand Down Expand Up @@ -85,13 +86,17 @@ export default {
biometricFeaturesActions: [
{
title: this.$t('FacialFeatures'),
has: this.$store.getters.publicSettings.FACE_RECOGNITION_ENABLED &&
this.$store.getters.publicSettings.XPACK_LICENSE_EDITION_ULTIMATE,
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_face_code_set ? this.$t('Unbind') : this.$t('Bind')
},
callbacks: {
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')
}
}
Expand Down

0 comments on commit bac35c6

Please sign in to comment.