#856 modificar ticket/index

This commit is contained in:
Gerard 2018-12-10 14:14:40 +01:00
parent e52012ac41
commit ad19761f0b
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,7 @@
<vn-searchbar
panel="vn-ticket-search-panel"
on-search="model.applyFilter(null, $params);"
filter="$ctrl.filter"
vn-focus>
</vn-searchbar>
</vn-three>

View File

@ -9,6 +9,13 @@ export default class Controller {
this.moreOptions = [
{callback: this.goToTurns, name: 'Turns', always: true},
];
let today = new Date();
let offset = today.getTimezoneOffset() * 60000;
today.setHours(0, 0, 0, 0);
today.setTime(today.getTime() - offset);
this.filter = {myTeam: true, from: today};
}
goToTurns() {