services: distinguish error state and idle state for stopped containers

This commit is contained in:
Girish Ramakrishnan
2026-03-08 09:48:41 +05:30
parent 4bc0f44789
commit 866b72d029
4 changed files with 28 additions and 14 deletions

View File

@@ -7,14 +7,14 @@ defineProps({
},
state: {
validator(value) {
// The value must match one of these strings
return ['success', 'warning', 'danger', ''].includes(value);
return ['success', 'warning', 'danger', 'idle', ''].includes(value);
}
},
});
function color(state) {
if (state === 'success') return '#27CE65';
else if (state === 'idle') return '#BCD0C3';
else if (state === 'warning') return '#f0ad4e';
else if (state === 'danger') return '#d9534f';
else return '#7c7c7c';