Fixup busy states in backup site dialogs

This commit is contained in:
Johannes Zellner
2025-09-23 12:15:27 +02:00
parent 7e00fbfe2d
commit 537d0203e1
3 changed files with 6 additions and 2 deletions
@@ -108,7 +108,9 @@ defineExpose({
<Dialog ref="dialog"
:title="$t('backups.configureBackupSchedule.title')"
reject-style="secondary"
:reject-label="busy ? null : $t('main.dialog.cancel')"
:reject-label="$t('main.dialog.cancel')"
:reject-busy="busy"
:reject-active="!busy"
:confirm-label="$t('main.dialog.save')"
:confirm-busy="busy"
:confirm-active="isConfigureValid"
@@ -311,7 +311,7 @@ defineExpose({
<Checkbox v-if="provider !== 'noop'" v-model="useEncryption" label="Use backup encryption"/>
<div style="display: flex; gap: 6px; align-items: end;">
<Button secondary :disabled="busy" @click="onCancel()">{{ $t('main.dialog.cancel') }}</Button>
<Button secondary v-if="!busy" :disabled="busy" @click="onCancel()">{{ $t('main.dialog.cancel') }}</Button>
<Button primary :disabled="busy" :loading="busy" @click="onSubmit()">{{ useEncryption ? $t('main.action.next') : $t('main.dialog.save') }}</Button>
</div>
</div>
@@ -88,8 +88,10 @@ defineExpose({
<Dialog ref="dialog"
:title="$t('backups.configureBackupStorage.title')"
:reject-label="$t('main.dialog.close')"
:reject-active="!busy"
reject-style="secondary"
:confirm-label="$t('main.dialog.save')"
:confirm-busy="busy"
confirm-style="primary"
@confirm="onSubmit()"
>