Fixup busy states in backup site dialogs
This commit is contained in:
@@ -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()"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user