From ebb57cdffbf6f92b6c6acb75be269919383d7d57 Mon Sep 17 00:00:00 2001 From: Francesco Boccacci Date: Mon, 26 Feb 2024 15:51:26 +0100 Subject: [PATCH] Click to go back button to show MacroGroup list from Group page within `ChangeMapMenu.vue` (#579) * 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 --- 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 5439ea8a3..4f1108fa3 100644 --- a/src/components/ChangeMapMenu.vue +++ b/src/components/ChangeMapMenu.vue @@ -5,8 +5,15 @@