From 9187a9b4a0f52ebc87f46159e8d829f0f3099408 Mon Sep 17 00:00:00 2001 From: Marco Zeisler Date: Fri, 15 Jan 2021 23:42:56 +0100 Subject: [PATCH] added loadImages --- frontend/src/app/component/landing/landing.component.css | 1 + frontend/src/app/component/landing/landing.component.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/frontend/src/app/component/landing/landing.component.css b/frontend/src/app/component/landing/landing.component.css index e69de29..8b13789 100644 --- a/frontend/src/app/component/landing/landing.component.css +++ b/frontend/src/app/component/landing/landing.component.css @@ -0,0 +1 @@ + diff --git a/frontend/src/app/component/landing/landing.component.ts b/frontend/src/app/component/landing/landing.component.ts index 910aaae..6f3ac44 100644 --- a/frontend/src/app/component/landing/landing.component.ts +++ b/frontend/src/app/component/landing/landing.component.ts @@ -24,6 +24,10 @@ export class LandingComponent implements OnInit { storageHealth => this.storageHealth = storageHealth ).catch(err => this.logger.error(err)); + this.loadImages(); + } + + loadImages(): void { this.restService.getAllImages().toPromise().then(images => this.images = images).catch(err => this.logger.error(err)); }