diff --git a/frontend/src/components/shared/WToolbarTitle.vue b/frontend/src/components/shared/WToolbarTitle.vue index 20e4c4dc8..d5cb225e5 100644 --- a/frontend/src/components/shared/WToolbarTitle.vue +++ b/frontend/src/components/shared/WToolbarTitle.vue @@ -1,6 +1,6 @@ diff --git a/frontend/src/layouts/AdminLayout.vue b/frontend/src/layouts/AdminLayout.vue index 59b0c6cfe..f0f0575d2 100644 --- a/frontend/src/layouts/AdminLayout.vue +++ b/frontend/src/layouts/AdminLayout.vue @@ -6,7 +6,7 @@ - Wiki.js + Wiki.js
{{ t('admin.adminArea') }}
diff --git a/frontend/src/pages/AdminGeneral.vue b/frontend/src/pages/AdminGeneral.vue index adc21228f..9e96c88c4 100644 --- a/frontend/src/pages/AdminGeneral.vue +++ b/frontend/src/pages/AdminGeneral.vue @@ -373,7 +373,7 @@ :src="`/_site/` + adminStore.currentSiteId + `/logo?` + state.assetTimestamp" style="height: 34px" /> - {{ + {{ state.config.title }}
diff --git a/frontend/src/stores/page.js b/frontend/src/stores/page.js index 7c0ed17e3..79e18eeb5 100644 --- a/frontend/src/stores/page.js +++ b/frontend/src/stores/page.js @@ -634,6 +634,21 @@ export const usePageStore = defineStore('page', { storedProps: { title: '', description: '', icon: '' }, mode: 'edit' }) + + /* + -> Page permissions at the path the new page will sit at + + Everywhere else they arrive with the page itself (`pageLoad`), and a page being created has + no page to carry them -- while `/_create` is not a page path, so the guard in `App.vue` has + just dropped whatever the page being left granted. Left empty, the properties panel hid every + section that is gated on one -- Scripts, Styles, Tags -- until the page had been saved once. + + Asked of the new path and not of the page the author started from, since a rule is granted + per path: starting a page in a section they may write scripts in is what decides it. + */ + if (newPath) { + await useUserStore().fetchPagePermissions(newPath, this.locale) + } }, /** * PAGE - DUPLICATE