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 e38cae7f8..cc063400d 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 @@ -25,11 +25,7 @@ allow-expand @closed="close"> - {{ $t('siteNavigation.drawer.title') }} - {{ siteName }} - + {{ $t('siteNavigation.drawer.title') }} @@ -37,18 +33,18 @@ color="white" flat dense> - - {{ $t('siteNavigation.label.btn.createNode') }} - - - {{ siteName }} - - + + {{ siteName }} + + + + {{ $t('siteNavigation.label.btn.createNode') }} + + node.uri === eXo.env.portal.selectedNodeUri || this.site.rootNode); } }, watch: { @@ -151,7 +150,7 @@ export default { .finally(() => this.loading = false); }, createNode() { - this.$root.$emit('open-site-navigation-add-node-drawer', this.site.rootNode); + this.$root.$emit('open-site-navigation-add-node-drawer', this.activeNode); }, filterNavigationNodes(){ this.navigationNodesToDisplay = []; diff --git a/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationNodeDrawer.vue b/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationNodeDrawer.vue index 5e1083245..0828420cc 100644 --- a/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationNodeDrawer.vue +++ b/layout-webapp/src/main/webapp/vue-app/common-layout-components/components/site-navigation/SiteNavigationNodeDrawer.vue @@ -497,4 +497,4 @@ export default { } } }; - \ No newline at end of file +