From 0180322e41a51b792f0e08f1e28cd9bcace51199 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Wed, 11 Nov 2020 23:09:35 +0100 Subject: [PATCH] Refactored loading state and animation --- .../pages/tables/bikes/bikes.component.html | 28 ++--- src/app/pages/tables/bikes/bikes.component.ts | 50 ++++---- src/app/services/bikes.service.ts | 109 ++++++++++++------ 3 files changed, 109 insertions(+), 78 deletions(-) diff --git a/src/app/pages/tables/bikes/bikes.component.html b/src/app/pages/tables/bikes/bikes.component.html index aeb5d48..ad8f4f9 100644 --- a/src/app/pages/tables/bikes/bikes.component.html +++ b/src/app/pages/tables/bikes/bikes.component.html @@ -48,10 +48,14 @@ - + - {{getHeader(column)}} + {{ getHeader(column) }} edit @@ -85,10 +87,8 @@ mat-icon-button *ngIf=" !element.isLockedByMe && - !element.waitingForEditPermissions && - !element.isLocked && - !element.saving && - !element.unlocking + !isLoading(element.id) && + !element.isLocked " > delete @@ -96,17 +96,13 @@