diff --git a/app/src/lang/translations/en-US.yaml b/app/src/lang/translations/en-US.yaml
index 44aef0d650..a76eaba6da 100644
--- a/app/src/lang/translations/en-US.yaml
+++ b/app/src/lang/translations/en-US.yaml
@@ -209,6 +209,7 @@ raw_value: Raw value
edit_raw_value: Edit Raw Value
enter_raw_value: Enter raw value...
clear_value: Clear value
+clear_changes: Clear Changes
reset_to_default: Reset to default
undo_changes: Undo changes
notifications: Notifications
diff --git a/app/src/modules/insights/components/panel.vue b/app/src/modules/insights/components/panel.vue
index e4ecbbb3db..ba945e0546 100644
--- a/app/src/modules/insights/components/panel.vue
+++ b/app/src/modules/insights/components/panel.vue
@@ -15,7 +15,7 @@
>
diff --git a/app/src/modules/insights/routes/dashboard.vue b/app/src/modules/insights/routes/dashboard.vue
index d67ccf9e9d..3e90f5554d 100644
--- a/app/src/modules/insights/routes/dashboard.vue
+++ b/app/src/modules/insights/routes/dashboard.vue
@@ -13,11 +13,22 @@
-
+
+
+
+
+
-
+
@@ -222,6 +233,7 @@ export default defineComponent({
deletingPanel,
deletePanel,
confirmDeletePanel,
+ cancelChanges,
};
function stagePanelEdits(edits: Partial, key: string = props.panelKey) {
@@ -304,6 +316,11 @@ export default defineComponent({
deletingPanel.value = false;
}
}
+
+ function cancelChanges() {
+ stagedPanels.value = [];
+ editMode.value = false;
+ }
},
});
@@ -351,4 +368,9 @@ export default defineComponent({
--v-button-background-color-hover: var(--danger-25);
--v-button-color-hover: var(--danger);
}
+
+.clear-changes {
+ --v-button-background-color: var(--foreground-subdued);
+ --v-button-background-color-hover: var(--foreground);
+}
diff --git a/app/src/modules/insights/routes/panel-configuration.vue b/app/src/modules/insights/routes/panel-configuration.vue
index ada7f353fb..22494e77f4 100644
--- a/app/src/modules/insights/routes/panel-configuration.vue
+++ b/app/src/modules/insights/routes/panel-configuration.vue
@@ -84,12 +84,12 @@ export default defineComponent({
type: props.panel?.type || undefined,
name: props.panel?.name,
note: props.panel?.note,
- icon: 'insert_chart',
+ icon: props.panel?.icon ?? 'insert_chart',
color: props.panel?.color,
- width: undefined,
- height: undefined,
- position_x: 1,
- position_y: 1,
+ width: props.panel?.width ?? undefined,
+ height: props.panel?.height ?? undefined,
+ position_x: props.panel?.position_x ?? 1,
+ position_y: props.panel?.position_y ?? 1,
options: props.panel?.options ?? {},
});