diff options
Diffstat (limited to 'frontend/src/app/_elements/notifications')
-rw-r--r-- | frontend/src/app/_elements/notifications/notifications.component.html | 2 | ||||
-rw-r--r-- | frontend/src/app/_elements/notifications/notifications.component.ts | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/app/_elements/notifications/notifications.component.html b/frontend/src/app/_elements/notifications/notifications.component.html index 27071425..d1da41b4 100644 --- a/frontend/src/app/_elements/notifications/notifications.component.html +++ b/frontend/src/app/_elements/notifications/notifications.component.html @@ -1,3 +1,3 @@ -<div class="position-fixed card card-body bg-dark text-white m-3" style="bottom: 0; right: 0;"> +<div *ngIf="notifications" class="position-fixed card card-body bg-dark text-white m-3" style="bottom: 0; right: 0;"> <h3>Notifikacije</h3> </div>
\ No newline at end of file diff --git a/frontend/src/app/_elements/notifications/notifications.component.ts b/frontend/src/app/_elements/notifications/notifications.component.ts index 7566828d..6c1d555b 100644 --- a/frontend/src/app/_elements/notifications/notifications.component.ts +++ b/frontend/src/app/_elements/notifications/notifications.component.ts @@ -8,6 +8,8 @@ import { WebSocketService } from 'src/app/_services/web-socket.service'; }) export class NotificationsComponent implements OnInit { + notifications?: any[]; + constructor(private wsService: WebSocketService) { } ngOnInit(): void { |