diff --git a/client/web/compose/src/views/Layout.vue b/client/web/compose/src/views/Layout.vue
index c18fad564..cfdf41090 100644
--- a/client/web/compose/src/views/Layout.vue
+++ b/client/web/compose/src/views/Layout.vue
@@ -178,14 +178,31 @@ export default {
*/
this.$root.$on('alert', ({ message, ...params }) => this.toast(message, params))
this.$root.$on('reminder.show', this.showReminder)
+
+ this.$root.$on('check-namespace-sidebar', this.checkNamespaceSidebar)
},
beforeDestroy () {
this.$root.$off('alert')
this.$root.$off('reminder.show', this.showReminder)
+ this.$root.$off('check-namespace-sidebar', this.checkNamespaceSidebar)
},
methods: {
+ checkNamespaceSidebar (showSidebar) {
+ const defaultDisabledRoutes = [
+ 'namespaces',
+ 'namespace.list',
+ 'namespace.edit',
+ 'namespace.create',
+ 'namespace.clone',
+ 'namespace.manage',
+ ]
+ const namespaceRoutes = ['page', 'pages', 'page.record', 'page.record.create', 'page.record.edit']
+
+ this.disabledRoutes = [...defaultDisabledRoutes, ...(showSidebar ? [] : namespaceRoutes)]
+ },
+
removeToast (reminderID) {
const i = this.toasts.findIndex(r => r.reminderID === reminderID)
if (i > -1) {
diff --git a/client/web/compose/src/views/Namespace/Edit.vue b/client/web/compose/src/views/Namespace/Edit.vue
index 20c0ed26d..b86ea58cf 100644
--- a/client/web/compose/src/views/Namespace/Edit.vue
+++ b/client/web/compose/src/views/Namespace/Edit.vue
@@ -22,6 +22,19 @@
>
{{ $t('visit') }}
+
+
+
+
+
+
+
+ {{ $t('sidebar.hide') }}
+
+
{
diff --git a/locale/en/corteza-webapp-compose/namespace.yaml b/locale/en/corteza-webapp-compose/namespace.yaml
index f96014094..4dd7c72c1 100644
--- a/locale/en/corteza-webapp-compose/namespace.yaml
+++ b/locale/en/corteza-webapp-compose/namespace.yaml
@@ -51,7 +51,7 @@ title: Low Code Namespaces
tooltip:
translations: Namespace translations
visit: Visit namespace
-
+configure: Configure namespace
manage:
title: Manage namespaces
@@ -69,3 +69,7 @@ manage:
name: Name
handle: Handle
last-change: Last change
+
+sidebar:
+ configure: Namespace pages
+ hide: Hide sidebar on namespace public pages