|
@@ -13,7 +13,7 @@ import GrowiContextualSubNavigation from '../components/Navbar/GrowiContextualSu
|
|
|
import {
|
|
import {
|
|
|
useCurrentUser, useCurrentPageId, useCurrentPagePath, useCurrentPathname,
|
|
useCurrentUser, useCurrentPageId, useCurrentPagePath, useCurrentPathname,
|
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
|
- useIsSearchScopeChildrenAsDefault, useIsSearchPage,
|
|
|
|
|
|
|
+ useIsSearchScopeChildrenAsDefault, useIsSearchPage, useShowPageLimitationXL,
|
|
|
} from '../stores/context';
|
|
} from '../stores/context';
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -29,7 +29,8 @@ type Props = CommonProps & {
|
|
|
isSearchServiceConfigured: boolean,
|
|
isSearchServiceConfigured: boolean,
|
|
|
isSearchServiceReachable: boolean,
|
|
isSearchServiceReachable: boolean,
|
|
|
isSearchScopeChildrenAsDefault: boolean,
|
|
isSearchScopeChildrenAsDefault: boolean,
|
|
|
- userUISettings?: IUserUISettings
|
|
|
|
|
|
|
+ userUISettings?: IUserUISettings,
|
|
|
|
|
+ showPageLimitationXL: number,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const TrashPage: NextPage<CommonProps> = (props: Props) => {
|
|
const TrashPage: NextPage<CommonProps> = (props: Props) => {
|
|
@@ -44,6 +45,8 @@ const TrashPage: NextPage<CommonProps> = (props: Props) => {
|
|
|
useCurrentPathname('/trash');
|
|
useCurrentPathname('/trash');
|
|
|
useCurrentPagePath('/trash');
|
|
useCurrentPagePath('/trash');
|
|
|
|
|
|
|
|
|
|
+ useShowPageLimitationXL(props.showPageLimitationXL);
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
<BasicLayout title={useCustomTitle(props, 'GROWI')} >
|
|
<BasicLayout title={useCustomTitle(props, 'GROWI')} >
|
|
@@ -88,6 +91,7 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
props.isSearchServiceConfigured = searchService.isConfigured;
|
|
props.isSearchServiceConfigured = searchService.isConfigured;
|
|
|
props.isSearchServiceReachable = searchService.isReachable;
|
|
props.isSearchServiceReachable = searchService.isReachable;
|
|
|
props.isSearchScopeChildrenAsDefault = configManager.getConfig('crowi', 'customize:isSearchScopeChildrenAsDefault');
|
|
props.isSearchScopeChildrenAsDefault = configManager.getConfig('crowi', 'customize:isSearchScopeChildrenAsDefault');
|
|
|
|
|
+ props.showPageLimitationXL = crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const getServerSideProps: GetServerSideProps = async(context: GetServerSidePropsContext) => {
|
|
export const getServerSideProps: GetServerSideProps = async(context: GetServerSidePropsContext) => {
|