refs #5648 create vn-confirm
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-05-08 13:25:42 +02:00
parent a51481c00e
commit 0b2c91466e
3 changed files with 13 additions and 1 deletions

View File

@ -481,12 +481,19 @@
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
</vn-confirm>
<vn-confirm
vn-id="claimSure"
message="Do you want to create a claim?"
on-accept="$ctrl.onCreateClaimAccepted()">
</vn-confirm>
<vn-confirm
vn-id="claimConfirm"
question="Do you want to continue?"
message="Claim out of time"
on-accept="$ctrl.onCreateClaimAccepted()">
</vn-confirm>
</vn-confirm>¡
<vn-menu vn-id="moreOptions">
<vn-item translate

View File

@ -193,9 +193,13 @@ class Controller extends Section {
});
}
sureClaim() {
}
createClaim() {
const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
const pastDays = Math.floor(timeDifference / 86400000);
this.$.claimSure.show();
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
this.$.claimConfirm.show();

View File

@ -42,3 +42,4 @@ Claim mana: Maná reclamación
History: Historial
Do you want to continue?: ¿Desea continuar?
Claim out of time: Reclamación fuera de plazo
Do you want to create a claim?: ¿Quieres crear una reclamación?