More visual next backup chip

This commit is contained in:
SebClem 2024-08-14 14:06:08 +02:00
parent a6134af549
commit ea757f071c
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -49,8 +49,8 @@
<span class="me-auto">Next</span> <span class="me-auto">Next</span>
<v-chip <v-chip
variant="elevated" variant="elevated"
color="success" :color="nextBackupProps.color"
prepend-icon="mdi-update" :prepend-icon="nextBackupProps.icon"
> >
{{ {{
status?.next_backup status?.next_backup
@ -111,6 +111,14 @@ const lastBackupProps = computed(() => {
} }
}); });
const nextBackupProps = computed(() => {
if (props.status?.next_backup == undefined) {
return { icon: "mdi-help-circle", color: "" };
} else {
return { icon: "mdi-update", color: "green" };
}
});
const indeterminate = computed(()=> { const indeterminate = computed(()=> {
return props.status?.progress == -1 && props.status.status != States.IDLE return props.status?.progress == -1 && props.status.status != States.IDLE
}) })