From 9ba3ccb5966b2360b55938b2c3f3b824abe999df Mon Sep 17 00:00:00 2001
From: kontrollanten <6680299+kontrollanten@users.noreply.github.com>
Date: Sun, 22 Dec 2024 12:11:48 +0100
Subject: [PATCH] client: add plugin support for external links
---
client/src/app/menu/menu.component.html | 12 ++++++++++--
client/src/app/menu/menu.component.ts | 3 ++-
.../shared/shared-main/buttons/button.component.html | 8 ++++++++
.../shared/shared-main/buttons/button.component.ts | 3 ++-
4 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html
index c241d39c489..5e847d86f6b 100644
--- a/client/src/app/menu/menu.component.html
+++ b/client/src/app/menu/menu.component.html
@@ -54,15 +54,23 @@
-
@if (link.isPrimaryButton === true) {
-
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts
index f8442f41fd6..d35dce92df7 100644
--- a/client/src/app/menu/menu.component.ts
+++ b/client/src/app/menu/menu.component.ts
@@ -25,7 +25,8 @@ type MenuLink = {
label: string
- path: string
+ path?: string
+ url?: string
query?: Params
isPrimaryButton?: boolean // default false
diff --git a/client/src/app/shared/shared-main/buttons/button.component.html b/client/src/app/shared/shared-main/buttons/button.component.html
index 35d99d4b73b..bbdc337117c 100644
--- a/client/src/app/shared/shared-main/buttons/button.component.html
+++ b/client/src/app/shared/shared-main/buttons/button.component.html
@@ -6,6 +6,14 @@
>
+} @else if (href) {
+
+
+
} @else {