|
|
@@ -18,7 +18,7 @@ const GrowiSubNavigation = (props) => {
|
|
|
const isPageForbidden = document.querySelector('#grw-subnav').getAttribute('data-is-forbidden-page');
|
|
|
const { appContainer, pageContainer } = props;
|
|
|
const {
|
|
|
- path, createdAt, creator, updatedAt, revisionAuthor,
|
|
|
+ pageId, path, createdAt, creator, updatedAt, revisionAuthor,
|
|
|
} = pageContainer.state;
|
|
|
|
|
|
// Display only the RevisionPath if the page is trash or forbidden
|
|
|
@@ -27,7 +27,7 @@ const GrowiSubNavigation = (props) => {
|
|
|
<div className="d-flex align-items-center">
|
|
|
<div className="title-container mr-auto">
|
|
|
<h1>
|
|
|
- <RevisionPath behaviorType={appContainer.config.behaviorType} pageId={pageContainer.state.pageId} pagePath={pageContainer.state.path} />
|
|
|
+ <RevisionPath behaviorType={appContainer.config.behaviorType} pageId={pageId} pagePath={pageContainer.state.path} />
|
|
|
</h1>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -40,17 +40,17 @@ const GrowiSubNavigation = (props) => {
|
|
|
{/* Page Path */}
|
|
|
<div className="title-container mr-auto">
|
|
|
<h1>
|
|
|
- <RevisionPath behaviorType={appContainer.config.behaviorType} pageId={pageContainer.state.pageId} pagePath={pageContainer.state.path} />
|
|
|
+ <RevisionPath behaviorType={appContainer.config.behaviorType} pageId={pageId} pagePath={pageContainer.state.path} />
|
|
|
</h1>
|
|
|
<TagLabels />
|
|
|
</div>
|
|
|
|
|
|
{/* Header Button */}
|
|
|
<div className="mr-2">
|
|
|
- <LikeButton pageId={pageContainer.state.pageId} isLiked={pageContainer.state.isLiked} />
|
|
|
+ <LikeButton pageId={pageId} isLiked={pageContainer.state.isLiked} />
|
|
|
</div>
|
|
|
<div>
|
|
|
- <BookmarkButton pageId={pageContainer.state.pageId} crowi={appContainer} />
|
|
|
+ <BookmarkButton pageId={pageId} crowi={appContainer} />
|
|
|
</div>
|
|
|
|
|
|
{/* Page Authors */}
|