forked from verdnatura/salix-front
refs #6128 change stateColor
This commit is contained in:
parent
8499bcbe19
commit
f71f341aad
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue