Commit 6411466d3db3c4b5630bfe62e64eb0e533f66210
Exists in
develop
Merge branch 'develop' of git.focasoftware.com:angular/autoservicio-axion into develop
Showing
2 changed files
Show diff stats
src/app/modules/admin/admin.component.ts
... | ... | @@ -17,16 +17,16 @@ export class AdminComponent implements OnInit { |
17 | 17 | ) { } |
18 | 18 | |
19 | 19 | ngOnInit() { |
20 | - // this.startTimeOutInactividad(); | |
20 | + this.startTimeOutInactividad(); | |
21 | 21 | } |
22 | 22 | |
23 | 23 | @HostListener('document:click', ['$event']) |
24 | 24 | |
25 | - // documentClick(event: MouseEvent) { | |
26 | - // if (event) { | |
27 | - // this.restartTimer(); | |
28 | - // } | |
29 | - // } | |
25 | + documentClick(event: MouseEvent) { | |
26 | + if (event) { | |
27 | + this.restartTimer(); | |
28 | + } | |
29 | + } | |
30 | 30 | |
31 | 31 | restartTimer() { |
32 | 32 | clearTimeout(this.timerReposo); |
src/app/modules/seleccion-articulos/seleccion-articulos.component.ts
... | ... | @@ -139,6 +139,9 @@ export class SeleccionArticulosComponent implements OnInit { |
139 | 139 | this.getPromociones(); |
140 | 140 | }, err => console.error(err)); |
141 | 141 | this.modalRef = this.modalService.show(templatePromos, { class: 'custom-modal modal-dialog-centered', backdrop: 'static' }); |
142 | + setTimeout(() => { | |
143 | + this.modalRef.hide(); | |
144 | + }, 80000); | |
142 | 145 | } |
143 | 146 | |
144 | 147 | getPromociones() { |