0
0
Fork 0

refs #6128 change stateColor

This commit is contained in:
Carlos Satorres 2023-12-21 12:15:01 +01:00
parent 8499bcbe19
commit f71f341aad
1 changed files with 8 additions and 3 deletions

View File

@ -99,10 +99,15 @@ const detailsColumns = ref([
},
]);
const STATE_COLOR = {
pending: 'positive',
managed: 'warning',
resolved: 'negative',
};
function stateColor(code) {
if (code === 'pending') return 'green';
if (code === 'managed') return 'orange';
if (code === 'resolved') return 'red';
return STATE_COLOR[code];
}
const developmentColumns = ref([