refs #5648 create vn-confirm #1508
|
@ -481,12 +481,19 @@
|
||||||
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
|
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
|
||||||
</vn-confirm>
|
</vn-confirm>
|
||||||
|
|
||||||
|
<vn-confirm
|
||||||
|
vn-id="claimSure"
|
||||||
|
message="Do you want to create a claim?"
|
||||||
|
on-accept="$ctrl.onCreateClaimAccepted()">
|
||||||
|
</vn-confirm>
|
||||||
|
|
||||||
<vn-confirm
|
<vn-confirm
|
||||||
vn-id="claimConfirm"
|
vn-id="claimConfirm"
|
||||||
question="Do you want to continue?"
|
question="Do you want to continue?"
|
||||||
message="Claim out of time"
|
message="Claim out of time"
|
||||||
on-accept="$ctrl.onCreateClaimAccepted()">
|
on-accept="$ctrl.onCreateClaimAccepted()">
|
||||||
</vn-confirm>
|
</vn-confirm>¡
|
||||||
|
|
||||||
|
|
||||||
<vn-menu vn-id="moreOptions">
|
<vn-menu vn-id="moreOptions">
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
|
|
|
@ -193,9 +193,13 @@ class Controller extends Section {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sureClaim() {
|
||||||
|
|
||||||
|
}
|
||||||
createClaim() {
|
createClaim() {
|
||||||
const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
|
const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
|
||||||
const pastDays = Math.floor(timeDifference / 86400000);
|
const pastDays = Math.floor(timeDifference / 86400000);
|
||||||
|
this.$.claimSure.show();
|
||||||
|
|
||||||
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
||||||
this.$.claimConfirm.show();
|
this.$.claimConfirm.show();
|
||||||
|
|
|
@ -42,3 +42,4 @@ Claim mana: Maná reclamación
|
||||||
History: Historial
|
History: Historial
|
||||||
Do you want to continue?: ¿Desea continuar?
|
Do you want to continue?: ¿Desea continuar?
|
||||||
Claim out of time: Reclamación fuera de plazo
|
Claim out of time: Reclamación fuera de plazo
|
||||||
|
Do you want to create a claim?: ¿Quieres crear una reclamación?
|
Loading…
Reference in New Issue