Showing
3 changed files
with
5 additions
and
3 deletions
... | ... | @@ -11,7 +11,8 @@ import { MessageEnum } from '@/enums/messageEnum' |
11 | 11 | |
12 | 12 | export function useContentData() { |
13 | 13 | const contentDataStore = useContentDataStoreWithOut() |
14 | - const { mode, publicId, configurationId, userId } = useParseParams() | |
14 | + const params = useParseParams() | |
15 | + const { mode, publicId, configurationId, userId } = params | |
15 | 16 | const userStore = useUserStoreWithOut() |
16 | 17 | const { createMessage } = useMessage() |
17 | 18 | ... | ... |
... | ... | @@ -52,6 +52,6 @@ export function isDesignMode(): boolean { |
52 | 52 | } |
53 | 53 | |
54 | 54 | export function isShareMode(): boolean { |
55 | - const { mode } = useParseParams() | |
56 | - return mode === PageModeEnum.SHARE | |
55 | + const { mode, parentPageIsPublic } = useParseParams() | |
56 | + return mode === PageModeEnum.SHARE || !!parentPageIsPublic | |
57 | 57 | } | ... | ... |