From ddcfdd5ac9924936d2f9dda037572e1608886ed7 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 29 Jan 2020 16:38:04 -0300 Subject: [PATCH] agrego boton cancel con misma funcionalidad que elegir producto solo en promocion --- src/app/modules/admin/admin.component.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/modules/admin/admin.component.ts b/src/app/modules/admin/admin.component.ts index 3577f55..b2c5510 100644 --- a/src/app/modules/admin/admin.component.ts +++ b/src/app/modules/admin/admin.component.ts @@ -14,17 +14,17 @@ export class AdminComponent implements OnInit, OnDestroy { ) { } ngOnInit() { - // this.inactiveScreen.startTimeOutInactividad(); + this.inactiveScreen.startTimeOutInactividad(); } ngOnDestroy() { - // clearTimeout(this.inactiveScreen.timerReposo); + clearTimeout(this.inactiveScreen.timerReposo); } - // @HostListener('document:click', ['$event']) - // eventListener(event: Event) { - // clearTimeout(this.inactiveScreen.timerReposo); - // this.inactiveScreen.startTimeOutInactividad(); - // } + @HostListener('document:click', ['$event']) + eventListener(event: Event) { + clearTimeout(this.inactiveScreen.timerReposo); + this.inactiveScreen.startTimeOutInactividad(); + } } -- 1.9.1