Track backup cleanup task in UI
This commit is contained in:
@@ -75,7 +75,6 @@ const policy = ref({
|
||||
schedule: '',
|
||||
retention: ''
|
||||
});
|
||||
const cleanupBusy = ref(false);
|
||||
const cleanupTask = ref({});
|
||||
|
||||
async function onCleanup() {
|
||||
@@ -255,9 +254,13 @@ onMounted(async () => {
|
||||
<div class="info-value">{{ prettyBackupRetention(policy.retention) }}</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO maybe track the cleanup -->
|
||||
<div v-if="cleanupTask.active">
|
||||
<ProgressBar :value="cleanupTask.percent" />
|
||||
<div>{{ cleanupTask.message }}</div>
|
||||
</div>
|
||||
|
||||
<div class="button-bar">
|
||||
<Button @click="onCleanup()" :disabled="cleanupBusy" :loading="cleanupBusy">{{ $t('backups.listing.cleanupBackups') }}</Button>
|
||||
<Button @click="onCleanup()" :disabled="cleanupTask.active" :loading="cleanupTask.active">{{ $t('backups.listing.cleanupBackups') }}</Button>
|
||||
<Button v-show="props.profile.isAtLeastOwner" @click="onConfigure()">{{ $t('backups.schedule.configure') }}</Button>
|
||||
</div>
|
||||
</Section>
|
||||
|
||||
Reference in New Issue
Block a user