Commit 6c95917e3ad481ba3206d63b4cfc4764a2b837ba
1 parent
38f25b31c7
Exists in
develop
agrego img not found cuando la promo no tiene imagen
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
src/app/modules/admin/admin.component.ts
1 | import { Component, OnInit, HostListener, OnDestroy } from '@angular/core'; | 1 | import { Component, OnInit, HostListener, OnDestroy } from '@angular/core'; |
2 | import { Router } from '@angular/router'; | 2 | import { Router } from '@angular/router'; |
3 | import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive-screen.service'; | 3 | import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive-screen.service'; |
4 | 4 | ||
5 | @Component({ | 5 | @Component({ |
6 | selector: 'app-admin', | 6 | selector: 'app-admin', |
7 | templateUrl: './admin.component.html', | 7 | templateUrl: './admin.component.html', |
8 | styleUrls: ['./admin.component.scss'] | 8 | styleUrls: ['./admin.component.scss'] |
9 | }) | 9 | }) |
10 | 10 | ||
11 | export class AdminComponent implements OnInit, OnDestroy { | 11 | export class AdminComponent implements OnInit, OnDestroy { |
12 | constructor( | 12 | constructor( |
13 | private inactiveScreen: InactiveScreenService, | 13 | private inactiveScreen: InactiveScreenService, |
14 | ) { } | 14 | ) { } |
15 | 15 | ||
16 | ngOnInit() { | 16 | ngOnInit() { |
17 | // this.inactiveScreen.startTimeOutInactividad(); | 17 | this.inactiveScreen.startTimeOutInactividad(); |
18 | } | 18 | } |
19 | 19 | ||
20 | ngOnDestroy() { | 20 | ngOnDestroy() { |
21 | // clearTimeout(this.inactiveScreen.timerReposo); | 21 | clearTimeout(this.inactiveScreen.timerReposo); |
22 | } | 22 | } |
23 | 23 | ||
24 | // @HostListener('document:click', ['$event']) | 24 | @HostListener('document:click', ['$event']) |
25 | // eventListener(event: Event) { | 25 | eventListener(event: Event) { |
26 | // clearTimeout(this.inactiveScreen.timerReposo); | 26 | clearTimeout(this.inactiveScreen.timerReposo); |
27 | // this.inactiveScreen.startTimeOutInactividad(); | 27 | this.inactiveScreen.startTimeOutInactividad(); |
28 | // } | 28 | } |
29 | 29 | ||
30 | } | 30 | } |
31 | 31 |