From b2988e68cff7badabd370991ad05e0adfc914339 Mon Sep 17 00:00:00 2001 From: Sara Boutej <40363501+SaraBoutej@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:39:01 +0100 Subject: [PATCH] feat: Fix create node location - MEED-7107 - Meeds-io/MIPs#137 (#130) This PR allows to edit the location of created node as main node and not a subnode. --- .../components/site-navigation/SiteNavigationDrawer.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationDrawer.vue b/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationDrawer.vue index cc063400d..040df8eac 100644 --- a/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationDrawer.vue +++ b/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationDrawer.vue @@ -103,9 +103,6 @@ export default { }, isMetaSite() { return this.site?.metaSite; - }, - activeNode() { - return this.navigationNodesToDisplay.find(node => node.uri === eXo.env.portal.selectedNodeUri || this.site.rootNode); } }, watch: { @@ -150,7 +147,7 @@ export default { .finally(() => this.loading = false); }, createNode() { - this.$root.$emit('open-site-navigation-add-node-drawer', this.activeNode); + this.$root.$emit('open-site-navigation-add-node-drawer', this.site.rootNode); }, filterNavigationNodes(){ this.navigationNodesToDisplay = [];