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 committed Aug 21, 2024
1 parent 0de2e2c commit ee753a5
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 ee753a5

Please sign in to comment.