|
@@ -25,14 +25,26 @@ const GrowiSubNavigation = (props) => {
|
|
|
} = props;
|
|
} = props;
|
|
|
const { isDrawerMode, editorMode, isDeviceSmallerThanMd } = navigationContainer.state;
|
|
const { isDrawerMode, editorMode, isDeviceSmallerThanMd } = navigationContainer.state;
|
|
|
const {
|
|
const {
|
|
|
- pageId, revisionId, path, isDeletable, isAbleToDeleteCompletely, createdAt, creator, updatedAt, revisionAuthor, isPageExist, tags,
|
|
|
|
|
|
|
+ pageId,
|
|
|
|
|
+ revisionId,
|
|
|
|
|
+ path,
|
|
|
|
|
+ isDeletable,
|
|
|
|
|
+ isAbleToDeleteCompletely,
|
|
|
|
|
+ createdAt,
|
|
|
|
|
+ creator,
|
|
|
|
|
+ updatedAt,
|
|
|
|
|
+ revisionAuthor,
|
|
|
|
|
+ isPageExist,
|
|
|
|
|
+ isTrashPage,
|
|
|
|
|
+ tags,
|
|
|
} = pageContainer.state;
|
|
} = pageContainer.state;
|
|
|
|
|
|
|
|
- const { isGuestUser } = appContainer;
|
|
|
|
|
|
|
+ const { isGuestUser, isSharedUser } = appContainer;
|
|
|
const isEditorMode = editorMode !== 'view';
|
|
const isEditorMode = editorMode !== 'view';
|
|
|
// Tags cannot be edited while the new page and editorMode is view
|
|
// Tags cannot be edited while the new page and editorMode is view
|
|
|
const isTagLabelHidden = (editorMode !== 'edit' && !isPageExist);
|
|
const isTagLabelHidden = (editorMode !== 'edit' && !isPageExist);
|
|
|
|
|
|
|
|
|
|
+ const isAbleToShowPageManagement = isPageExist && !isTrashPage && !isSharedUser;
|
|
|
function onPageEditorModeButtonClicked(viewType) {
|
|
function onPageEditorModeButtonClicked(viewType) {
|
|
|
navigationContainer.setEditorMode(viewType);
|
|
navigationContainer.setEditorMode(viewType);
|
|
|
}
|
|
}
|
|
@@ -92,6 +104,7 @@ const GrowiSubNavigation = (props) => {
|
|
|
path={path}
|
|
path={path}
|
|
|
isDeletable={isDeletable}
|
|
isDeletable={isDeletable}
|
|
|
isAbleToDeleteCompletely={isAbleToDeleteCompletely}
|
|
isAbleToDeleteCompletely={isAbleToDeleteCompletely}
|
|
|
|
|
+ willShowPageManagement={isAbleToShowPageManagement}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="mt-2">
|
|
<div className="mt-2">
|