refs #6128 recharge photo #134

Merged
carlossa merged 3 commits from 6128-rechargePhotos into dev 2023-12-21 13:19:43 +00:00
1 changed files with 8 additions and 3 deletions
Showing only changes of commit f71f341aad - Show all commits

View File

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