From 201a3a68b1240f3b1ae1c7f8ca433d64a32e7976 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 25 May 2023 17:40:54 +0200 Subject: [PATCH] Check for leave link. --- .../features/apps/pages/app.component.html | 30 ++++++++++--------- .../src/app/shared/services/apps.service.ts | 2 ++ .../Settings/VerifySettings.cs | 2 +- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/frontend/src/app/features/apps/pages/app.component.html b/frontend/src/app/features/apps/pages/app.component.html index f41ecc6e5..75e5d0094 100644 --- a/frontend/src/app/features/apps/pages/app.component.html +++ b/frontend/src/app/features/apps/pages/app.component.html @@ -24,20 +24,22 @@ - - - - - - {{ 'apps.leave' | sqxTranslate }} - - + + + + + + + {{ 'apps.leave' | sqxTranslate }} + + + \ No newline at end of file diff --git a/frontend/src/app/shared/services/apps.service.ts b/frontend/src/app/shared/services/apps.service.ts index dc9f4b19d..1061ce452 100644 --- a/frontend/src/app/shared/services/apps.service.ts +++ b/frontend/src/app/shared/services/apps.service.ts @@ -16,6 +16,7 @@ export class AppDto { public readonly canCreateSchema: boolean; public readonly canDelete: boolean; + public readonly canLeave: boolean; public readonly canReadAssets: boolean; public readonly canReadAssetsScripts: boolean; public readonly canReadBackups: boolean; @@ -60,6 +61,7 @@ export class AppDto { this.canCreateSchema = hasAnyLink(links, 'schemas/create'); this.canDelete = hasAnyLink(links, 'delete'); + this.canLeave = hasAnyLink(links, 'leave'); this.canReadAssets = hasAnyLink(links, 'assets'); this.canReadAssetsScripts = hasAnyLink(links, 'assets/scripts'); this.canReadBackups = hasAnyLink(links, 'backups'); diff --git a/tools/TestSuite/TestSuite.ApiTests/Settings/VerifySettings.cs b/tools/TestSuite/TestSuite.ApiTests/Settings/VerifySettings.cs index 387b7085f..691f8fe68 100644 --- a/tools/TestSuite/TestSuite.ApiTests/Settings/VerifySettings.cs +++ b/tools/TestSuite/TestSuite.ApiTests/Settings/VerifySettings.cs @@ -14,7 +14,7 @@ public static class VerifySettings [ModuleInitializer] public static void Initialize() { - Verifier.DerivePathInfo((sourceFile, projectDirectory, type, method) => + DerivePathInfo((sourceFile, projectDirectory, type, method) => { var path = Path.Combine(projectDirectory, "Verify");