refs #5648 create vn-confirm #1508

Merged
carlossa merged 12 commits from 5648-sureClaim into dev 2023-05-23 07:00:14 +00:00
3 changed files with 13 additions and 1 deletions
Showing only changes of commit 0b2c91466e - Show all commits

View File

@ -481,12 +481,19 @@
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
</vn-confirm>
<vn-confirm

dos intros es un error?

dos intros es un error?

Si falo meu, perdona, ja esta solucionat

Si falo meu, perdona, ja esta solucionat
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?"

la sangria no l'has posada

la sangria no l'has posada
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?