|
@@ -235,7 +235,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
|
|
|
return wideviewMenuItemRenderer;
|
|
return wideviewMenuItemRenderer;
|
|
|
}, [pageInfo, switchContentWidthClickHandler, expandContentWidth]);
|
|
}, [pageInfo, switchContentWidthClickHandler, expandContentWidth]);
|
|
|
|
|
|
|
|
- if (!isIPageInfoForOperation(pageInfo)) {
|
|
|
|
|
|
|
+ if (!isIPageInfoForEntity(pageInfo)) {
|
|
|
return <></>;
|
|
return <></>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -256,18 +256,18 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
|
|
|
{ isDeviceLargerThanMd && (
|
|
{ isDeviceLargerThanMd && (
|
|
|
<SearchButton />
|
|
<SearchButton />
|
|
|
)}
|
|
)}
|
|
|
- {revisionId != null && !isViewMode && (
|
|
|
|
|
|
|
+ {revisionId != null && !isViewMode && isIPageInfoForOperation(pageInfo) && (
|
|
|
<Tags
|
|
<Tags
|
|
|
onClickEditTagsButton={onClickEditTagsButton}
|
|
onClickEditTagsButton={onClickEditTagsButton}
|
|
|
/>
|
|
/>
|
|
|
)}
|
|
)}
|
|
|
- {revisionId != null && (
|
|
|
|
|
|
|
+ {revisionId != null && isIPageInfoForOperation(pageInfo) && (
|
|
|
<SubscribeButton
|
|
<SubscribeButton
|
|
|
status={pageInfo.subscriptionStatus}
|
|
status={pageInfo.subscriptionStatus}
|
|
|
onClick={subscribeClickhandler}
|
|
onClick={subscribeClickhandler}
|
|
|
/>
|
|
/>
|
|
|
)}
|
|
)}
|
|
|
- {revisionId != null && (
|
|
|
|
|
|
|
+ {revisionId != null && isIPageInfoForOperation(pageInfo) && (
|
|
|
<LikeButtons
|
|
<LikeButtons
|
|
|
onLikeClicked={likeClickhandler}
|
|
onLikeClicked={likeClickhandler}
|
|
|
sumOfLikers={sumOfLikers}
|
|
sumOfLikers={sumOfLikers}
|
|
@@ -275,7 +275,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
|
|
|
likers={likers}
|
|
likers={likers}
|
|
|
/>
|
|
/>
|
|
|
)}
|
|
)}
|
|
|
- {revisionId != null && (
|
|
|
|
|
|
|
+ {revisionId != null && isIPageInfoForOperation(pageInfo) && (
|
|
|
<BookmarkButtons
|
|
<BookmarkButtons
|
|
|
pageId={pageId}
|
|
pageId={pageId}
|
|
|
isBookmarked={pageInfo.isBookmarked}
|
|
isBookmarked={pageInfo.isBookmarked}
|
|
@@ -289,7 +289,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
|
|
|
disabled={disableSeenUserInfoPopover}
|
|
disabled={disableSeenUserInfoPopover}
|
|
|
/>
|
|
/>
|
|
|
) }
|
|
) }
|
|
|
- { showPageControlDropdown && (
|
|
|
|
|
|
|
+ { showPageControlDropdown && isIPageInfoForOperation(pageInfo) && (
|
|
|
<PageItemControl
|
|
<PageItemControl
|
|
|
alignEnd
|
|
alignEnd
|
|
|
pageId={pageId}
|
|
pageId={pageId}
|
|
@@ -337,7 +337,7 @@ export const PageControls = memo((props: PageControlsProps): JSX.Element => {
|
|
|
return <></>;
|
|
return <></>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!isIPageInfoForOperation(pageInfo)) {
|
|
|
|
|
|
|
+ if (!isIPageInfoForEntity(pageInfo)) {
|
|
|
return <></>;
|
|
return <></>;
|
|
|
}
|
|
}
|
|
|
|
|
|