Skip to content

Commit

Permalink
feat: Fix create node location - MEED-7107 - Meeds-io/MIPs#137 (#130)
Browse files Browse the repository at this point in the history
This PR allows to edit the location of created node as main node and not a subnode.
  • Loading branch information
SaraBoutej authored and boubaker committed Jul 9, 2024
1 parent 532b2ce commit b63c694
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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 = [];
Expand Down

0 comments on commit b63c694

Please sign in to comment.