Add checkbox to configure backup site backup for update behavior
This commit is contained in:
@@ -26,6 +26,7 @@ const encryptedFilenames = ref(false);
|
||||
const encryptionPasswordHint = ref('');
|
||||
const formError = ref({});
|
||||
const busy = ref(false);
|
||||
const enableForUpdates = ref(false);
|
||||
const provider = ref('');
|
||||
const providerConfig = ref({
|
||||
mountOptions: {},
|
||||
@@ -151,7 +152,7 @@ async function onSubmit() {
|
||||
// everything
|
||||
const contents = null;
|
||||
|
||||
const [error, result] = await backupSitesModel.add(name.value, format.value, contents, provider.value, data, schedulePattern, retention, limitsConfig);
|
||||
const [error, result] = await backupSitesModel.add(name.value, format.value, contents, enableForUpdates.value, provider.value, data, schedulePattern, retention, limitsConfig);
|
||||
if (error) {
|
||||
formError.value.generic = error.body ? error.body.message : 'Internal error';
|
||||
busy.value = false;
|
||||
@@ -221,6 +222,7 @@ defineExpose({
|
||||
formError.value = {};
|
||||
busy.value = false;
|
||||
name.value = '';
|
||||
enableForUpdates.value = false;
|
||||
provider.value = '';
|
||||
format.value = '';
|
||||
providerConfig.value = {};
|
||||
@@ -265,6 +267,8 @@ defineExpose({
|
||||
<TextInput id="nameInput" v-model="name" required/>
|
||||
</FormGroup>
|
||||
|
||||
<Checkbox v-model="enableForUpdates" :label="$t('backups.configureBackupStorage.useForUpdates')" />
|
||||
|
||||
<BackupProviderForm v-model:provider="provider" v-model:format="format" v-model:provider-config="providerConfig" :form-error="formError"/>
|
||||
|
||||
<FormGroup>
|
||||
|
||||
Reference in New Issue
Block a user