mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-12 20:42: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>
|
||||
<v-chip
|
||||
variant="elevated"
|
||||
color="success"
|
||||
prepend-icon="mdi-update"
|
||||
:color="nextBackupProps.color"
|
||||
:prepend-icon="nextBackupProps.icon"
|
||||
>
|
||||
{{
|
||||
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(()=> {
|
||||
return props.status?.progress == -1 && props.status.status != States.IDLE
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user