Revert "revert merge from dev"
gitea/salix/pipeline/head Build queued... Details

This reverts commit e026d487c7.
This commit is contained in:
Javier Segarra 2023-11-28 12:28:37 +01:00
parent 81b3b22e55
commit c23c10dd5a
1 changed files with 14 additions and 0 deletions

View File

@ -89,6 +89,20 @@ export default class Controller extends Section {
return 'success';
}
compareDate(date) {
let today = Date.vnNew();
today.setHours(0, 0, 0, 0);
let timeTicket = new Date(date);
timeTicket.setHours(0, 0, 0, 0);
let comparation = today - timeTicket;
if (comparation == 0)
return 'warning';
if (comparation < 0)
return 'success';
}
get checked() {
const tickets = this.$.model.data || [];
const checkedLines = [];