Fixup some vue warnings

This commit is contained in:
Johannes Zellner
2025-08-07 20:03:03 +02:00
parent 9528e26487
commit 37ed1f750e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
});
+1 -1
View File
@@ -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()"