From 4b6aef7d7d95a53e107385c68216928b02474f24 Mon Sep 17 00:00:00 2001 From: "brian.mulier" Date: Fri, 29 Nov 2024 14:15:37 +0100 Subject: [PATCH] fix(ui): allow save default dashboard upon creation even without change --- .../components/dashboard/components/DashboardCreate.vue | 2 +- .../components/dashboard/components/DashboardEditor.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/src/components/dashboard/components/DashboardCreate.vue b/ui/src/components/dashboard/components/DashboardCreate.vue index 8e66d834861..db1e1e8da81 100644 --- a/ui/src/components/dashboard/components/DashboardCreate.vue +++ b/ui/src/components/dashboard/components/DashboardCreate.vue @@ -1,7 +1,7 @@ diff --git a/ui/src/components/dashboard/components/DashboardEditor.vue b/ui/src/components/dashboard/components/DashboardEditor.vue index dc380dcbf55..8581ecb9527 100644 --- a/ui/src/components/dashboard/components/DashboardEditor.vue +++ b/ui/src/components/dashboard/components/DashboardEditor.vue @@ -4,7 +4,7 @@ :icon="ContentSave" @click="$emit('save', source)" :type="buttonType" - :disabled="source === initialSource" + :disabled="!allowSaveUnchanged && source === initialSource" > {{ $t("save") }} @@ -12,7 +12,7 @@