refs #5648 create vn-confirm #1508

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

View File

@ -193,18 +193,18 @@ class Controller extends Section {
});
}
sureClaim() {
}
createClaim() {
this.$.claimSure.show();
setTimeout(() => {
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();
else
this.onCreateClaimAccepted();
}, 10000000);
}
onCreateClaimAccepted() {