From 9b77b40bd0a9c8e8cad9b6e4819170207ae5b337 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Thu, 6 Aug 2020 23:27:22 +0200 Subject: [PATCH] Update notification-box.component.ts --- .../components/notification-box/notification-box.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/notification-box/notification-box.component.ts b/src/app/components/notification-box/notification-box.component.ts index 2d7b0385..e2768f54 100644 --- a/src/app/components/notification-box/notification-box.component.ts +++ b/src/app/components/notification-box/notification-box.component.ts @@ -65,6 +65,9 @@ export class NotificationBoxComponent implements OnInit, OnDestroy { startTimer() { this.timer = timer(this.delayTime, 1000); + setTimeout(() => { + this.showNotification(); + }, 5000); this.timerSubscription = this.timer.subscribe(() => { this.ticks++;