mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-23 10:44:59 +01:00
Allow to enable only webauthn
This commit is contained in:
@@ -36,10 +36,10 @@ const { $gettext } = useGettext()
|
||||
|
||||
const props = defineProps({
|
||||
// the callback should return true or false, returning false inhibits the close event
|
||||
callback_agree : {
|
||||
callback_agree: {
|
||||
type: Function,
|
||||
default: null
|
||||
}
|
||||
default: null,
|
||||
},
|
||||
})
|
||||
|
||||
const dialog = ref(false)
|
||||
@@ -70,7 +70,7 @@ defineExpose({
|
||||
})
|
||||
|
||||
async function agree() {
|
||||
if (props.callback_agree !== null && ! (await props.callback_agree())) {
|
||||
if (props.callback_agree !== null && !(await props.callback_agree())) {
|
||||
return
|
||||
}
|
||||
storedResolve(true)
|
||||
|
||||
Reference in New Issue
Block a user