|
|
@@ -16,6 +16,7 @@ import ArchiveCreateModal from '../ArchiveCreateModal';
|
|
|
const PageShareManagement = (props) => {
|
|
|
const { t, appContainer, pageContainer } = props;
|
|
|
|
|
|
+ const { path } = pageContainer.state;
|
|
|
const { currentUser } = appContainer;
|
|
|
|
|
|
const [isOutsideShareLinkModalShown, setIsOutsideShareLinkModalShown] = useState(false);
|
|
|
@@ -70,6 +71,7 @@ const PageShareManagement = (props) => {
|
|
|
<ArchiveCreateModal
|
|
|
isOpen={isArchiveCreateModalShown}
|
|
|
onClose={closeArchiveCreateModalHandler}
|
|
|
+ path={path}
|
|
|
/>
|
|
|
</>
|
|
|
);
|
|
|
@@ -112,20 +114,32 @@ const PageShareManagement = (props) => {
|
|
|
{currentUser == null ? renderGuestUser() : renderCurrentUser()}
|
|
|
<div className="dropdown-menu dropdown-menu-right">
|
|
|
<button className="dropdown-item" type="button" onClick={openOutsideShareLinkModalHandler}>
|
|
|
- <i className="icon-fw icon-link"></i>{t('Shere this page link to public')}
|
|
|
+ <i className="icon-fw icon-link"></i>
|
|
|
+ {t('Shere this page link to public')}
|
|
|
<span className="ml-2 badge badge-info badge-pill">{pageContainer.state.shareLinksNumber}</span>
|
|
|
</button>
|
|
|
- <button type="button" className="dropdown-item" onClick={() => { exportPageHundler('markdown') }}>
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ className="dropdown-item"
|
|
|
+ onClick={() => {
|
|
|
+ exportPageHundler('markdown');
|
|
|
+ }}
|
|
|
+ >
|
|
|
<span>{t('export_bulk.export_page_markdown')}</span>
|
|
|
</button>
|
|
|
- <button type="button" className="dropdown-item" onClick={() => { exportPageHundler('pdf') }}>
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ className="dropdown-item"
|
|
|
+ onClick={() => {
|
|
|
+ exportPageHundler('pdf');
|
|
|
+ }}
|
|
|
+ >
|
|
|
<span>{t('export_bulk.export_page_pdf')}</span>
|
|
|
</button>
|
|
|
|
|
|
<button className="dropdown-item" type="button" onClick={openArchiveModalHandler}>
|
|
|
- <i className="icon-fw">{t('Create Archive Page')}</i>
|
|
|
+ <i className="icon-fw"></i>{t('Create Archive Page')}
|
|
|
</button>
|
|
|
-
|
|
|
</div>
|
|
|
{renderModals()}
|
|
|
</>
|