mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
More visual next backup chip
This commit is contained in:
parent
a6134af549
commit
ea757f071c
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user