From 6a85df720854087e12ffc6163e895dbb4afe6800 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Thu, 17 Dec 2020 22:45:32 +0100 Subject: [PATCH] Add error messages to page and table --- src/app/components/data-page/data-page.component.html | 4 ++-- src/app/components/data-page/data-page.component.scss | 4 ++++ src/app/components/table/table.component.html | 9 +++++++-- src/app/components/table/table.component.scss | 4 ++++ src/app/components/table/table.component.ts | 9 +++++++-- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/app/components/data-page/data-page.component.html b/src/app/components/data-page/data-page.component.html index 4fadaf9..0005344 100644 --- a/src/app/components/data-page/data-page.component.html +++ b/src/app/components/data-page/data-page.component.html @@ -3,7 +3,7 @@ [diameter]="32" class="page-loading-spinner" > -
+

Seite konnte nicht gefunden werden :(

@@ -128,7 +128,7 @@ *ngIf="!data?.isLockedByMe && !data?.isLocked" class="floating-fab-button" color="primary" - [disabled]="isSavingOrLocking || isLoading" + [disabled]="isSavingOrLocking || isLoading || !data" > edit diff --git a/src/app/components/data-page/data-page.component.scss b/src/app/components/data-page/data-page.component.scss index 34de403..3c9db5d 100644 --- a/src/app/components/data-page/data-page.component.scss +++ b/src/app/components/data-page/data-page.component.scss @@ -1,3 +1,7 @@ +.loading-error-message { + margin: 1em; +} + .page-loading-spinner { margin: 0 auto; } diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index ce9aedf..51bc0e4 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -1,7 +1,9 @@

{{ headline }} - {{ headlineIconName }} + {{ + headlineIconName + }}