Commit f612ee27410a20a67b745b83441712e18f9c7143
Exists in
develop
Merge branch 'master' into 'develop'
Master(benjamin) See merge request !23
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() { |