Fixup some vue warnings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
|
||||
import { useTemplateRef, ref, watch } from 'vue';
|
||||
import { useTemplateRef, ref, watchEffect } from 'vue';
|
||||
import { Button } from '@cloudron/pankow';
|
||||
|
||||
const fileInput = useTemplateRef('fileInput');
|
||||
@@ -12,7 +12,7 @@ const internalSrc = ref('');
|
||||
const isChanged = ref(false);
|
||||
const busy = ref(false);
|
||||
|
||||
watch(() => {
|
||||
watchEffect(() => {
|
||||
internalSrc.value = props.src;
|
||||
});
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ defineExpose({
|
||||
:confirm-active="!busy"
|
||||
reject-style="secondary"
|
||||
:reject-label="busy ? null : $t('main.dialog.cancel')"
|
||||
:alternate-style="secondary"
|
||||
alternate-style="secondary"
|
||||
:alternate-label="(user && user.twoFactorAuthenticationEnabled && !(user.source && external2FA)) ? $t('users.passwordResetDialog.reset2FAAction') : null"
|
||||
:alternate-busy="reset2FABusy"
|
||||
@alternate="onReset2FA()"
|
||||
|
||||
Reference in New Issue
Block a user