This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
:error-messages="form().serverErrors(this, 'backupTime')"
|
||||
v-model="obj.backupTime"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="backupTime"
|
||||
@input="fieldValueChanged('backupTime')"
|
||||
></gz-time-picker>
|
||||
@@ -23,6 +24,7 @@
|
||||
<v-checkbox
|
||||
v-model="obj.backupAttachments"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('BackupAttachments')"
|
||||
ref="backupAttachments"
|
||||
:error-messages="form().serverErrors(this, 'backupAttachments')"
|
||||
@@ -34,6 +36,7 @@
|
||||
<v-text-field
|
||||
v-model="obj.backupSetsToKeep"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('BackupSetsToKeep')"
|
||||
ref="backupSetsToKeep"
|
||||
:rules="[form().integerValid(this, 'backupSetsToKeep')]"
|
||||
@@ -63,7 +66,12 @@
|
||||
<tbody>
|
||||
<tr v-for="item in backupFileList" :key="item.id">
|
||||
<td>
|
||||
<a :href="item.url">{{ item.name }}</a>
|
||||
<template v-if="!formState.readOnly">
|
||||
<a :href="item.url">{{ item.name }}</a>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ item.name }}
|
||||
</template>
|
||||
</td>
|
||||
<td>{{ item.created }}</td>
|
||||
<td>{{ item.length }}</td>
|
||||
@@ -223,7 +231,9 @@ export default {
|
||||
this.languageName,
|
||||
this.hour12
|
||||
),
|
||||
url: window.$gz.api.backupDownloadUrl(o.name),
|
||||
url: vm.formState.readOnly
|
||||
? null
|
||||
: window.$gz.api.backupDownloadUrl(o.name),
|
||||
name: o.name,
|
||||
length: o.length
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user