From 3a6e148c110c49ea723c6dc01e319b7ec36ffab0 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Thu, 15 Jan 2026 10:56:35 +0100 Subject: [PATCH] Prepare steps for custom dashboard handling --- js/layouts/dashboard/dashboard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/layouts/dashboard/dashboard.js b/js/layouts/dashboard/dashboard.js index b6fb975bc9..be0732240c 100644 --- a/js/layouts/dashboard/dashboard.js +++ b/js/layouts/dashboard/dashboard.js @@ -53,6 +53,9 @@ class IboDashboard extends HTMLElement { this.SetEditMode(false) }); + // TODO 3.3 Add event listener to dashboard toggler to get custom/default dashboard switching + // TODO 3.3 require load method that's not finished yet + // Bind IboDashboard object to these listener so we can access current instance this._ListenToDashletFormSubmission = this._ListenToDashletFormSubmission.bind(this); this._ListenToDashletFormCancellation = this._ListenToDashletFormCancellation.bind(this); @@ -79,6 +82,8 @@ class IboDashboard extends HTMLElement { this.oGrid.SetEditable(this.bEditMode); if(this.bEditMode){ + // TODO 3.3 If we are in default dashboard display, change to custom to allow editing + // TODO 3.3 Get the custom dashboard and load it, show a tooltip on the dashboard toggler to explain that we switched to custom mode this.aLastSavedState = this.Serialize(); this.setAttribute("data-edit-mode", "edit"); }