From 51f0a87f6bf364a19221b2ef3ad2a0c4127f2564 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:04:49 +0100 Subject: [PATCH] Click to go back button to show MacroGroup list from Group page within `ChangeMapMenu.vue` (#579) (#585) * add cache * Temp dev * Check if current project (initiial) belong to a macrogroup/s checking initCongif.group.macrogroup_id attribute * avoid nested conditions * replace `this._cache` with internal functions `get_macro(id)` + `get_group(id)` * missing `cb` * Show macrogroups list if a project initial group belong to more than one macro groups * Show macrogroups list if a project initial group belong to more than one macro groups: Improving * Show macrogroups if init project belong to a group inside more than one macrogroups * remove padding * Revert "remove padding" This reverts commit 540c938fb483db5fcfebe023aabfbc188d77d71f. * code clean up * Fix case of group.id == macrogroup.id * remove `setFallBackImage` and `macrogroupsandgroups ` * remove `isChildNode` and `_onChangeRoot` * jsdoc * Fix .on register event. Need to be a function --------- Co-authored-by: Raruto (cherry picked from commit ebb57cdffbf6f92b6c6acb75be269919383d7d57) Co-authored-by: Francesco Boccacci --- src/components/ChangeMapMenu.vue | 280 +++++++++++++++++++------------ src/components/Relation.vue | 2 +- 2 files changed, 170 insertions(+), 112 deletions(-) diff --git a/src/components/ChangeMapMenu.vue b/src/components/ChangeMapMenu.vue index 39a1e554d..dbec95cd2 100644 --- a/src/components/ChangeMapMenu.vue +++ b/src/components/ChangeMapMenu.vue @@ -5,8 +5,15 @@