Merge branch 'dev' into 4632-guardarFirmas-salix
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-02-27 06:28:50 +00:00
commit 4173a15f5e
3 changed files with 9 additions and 8 deletions

View File

@ -166,7 +166,8 @@ module.exports = Self => {
c.name AS clientName, c.name AS clientName,
cl.workerFk, cl.workerFk,
u.name AS workerName, u.name AS workerName,
cs.description, cs.code stateCode,
cs.description stateDescription,
cl.created cl.created
FROM claim cl FROM claim cl
LEFT JOIN client c ON c.id = cl.clientFk LEFT JOIN client c ON c.id = cl.clientFk

View File

@ -52,8 +52,8 @@
</span> </span>
</td> </td>
<td> <td>
<span class="chip {{::$ctrl.stateColor(claim)}}"> <span class="chip {{::$ctrl.stateColor(claim.stateCode)}}">
{{::claim.description}} {{::claim.stateDescription}}
</span> </span>
</td> </td>
<td shrink> <td shrink>

View File

@ -55,13 +55,13 @@ class Controller extends Section {
} }
} }
stateColor(claim) { stateColor(code) {
switch (claim.description) { switch (code) {
case 'Pendiente': case 'pending':
return 'warning'; return 'warning';
case 'Gestionado': case 'managed':
return 'notice'; return 'notice';
case 'Resuelto': case 'resolved':
return 'success'; return 'success';
} }
} }