From 824406735158cfa990c444dfde8913b86d12020c Mon Sep 17 00:00:00 2001 From: Noe Date: Fri, 19 Jul 2024 12:36:27 +0200 Subject: [PATCH] Recover missed files from backend --- csharp/App/Backend/Database/Read.cs | 6 +++ .../SalidomoInstallations/Installation.tsx | 43 ++++++++++--------- .../SalidomoInstallations/index.tsx | 2 +- 3 files changed, 30 insertions(+), 21 deletions(-) diff --git a/csharp/App/Backend/Database/Read.cs b/csharp/App/Backend/Database/Read.cs index 14758c1b1..c98465155 100644 --- a/csharp/App/Backend/Database/Read.cs +++ b/csharp/App/Backend/Database/Read.cs @@ -19,6 +19,12 @@ public static partial class Db .FirstOrDefault(i => i.Id == id); } + public static UserAction? GetActionById(Int64? id) + { + return UserActions + .FirstOrDefault(i => i.Id == id); + } + public static User? GetUserById(Int64? id) { return Users diff --git a/typescript/frontend-marios2/src/content/dashboards/SalidomoInstallations/Installation.tsx b/typescript/frontend-marios2/src/content/dashboards/SalidomoInstallations/Installation.tsx index f575b44ae..0bd2fd780 100644 --- a/typescript/frontend-marios2/src/content/dashboards/SalidomoInstallations/Installation.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/SalidomoInstallations/Installation.tsx @@ -276,27 +276,30 @@ function Installation(props: singleInstallationProps) { /> - {loading && currentTab != 'information' && currentTab != 'overview' && ( - - - - Connecting to the device... - - - )} + + + Connecting to the device... + + + )} (undefined); const [fetchedInstallations, setFetchedInstallations] =