Merge branch 'dev' into 4632-guardarFirmas-salix
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
commit
4173a15f5e
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue