|
@@ -34,12 +34,12 @@ import PluginUtils from '~/server/plugins/plugin-utils';
|
|
|
import ConfigLoader from '~/server/service/config-loader';
|
|
import ConfigLoader from '~/server/service/config-loader';
|
|
|
import {
|
|
import {
|
|
|
useCurrentUser, /* useSearchServiceConfigured, */ useIsAclEnabled, useIsMailerSetup, useIsSearchServiceReachable, useSiteUrl,
|
|
useCurrentUser, /* useSearchServiceConfigured, */ useIsAclEnabled, useIsMailerSetup, useIsSearchServiceReachable, useSiteUrl,
|
|
|
- useAuditLogEnabled, useAuditLogAvailableActions, useIsSearchPage,
|
|
|
|
|
|
|
+ useAuditLogEnabled, useAuditLogAvailableActions, useIsSearchPage, useCustomizeTitle,
|
|
|
} from '~/stores/context';
|
|
} from '~/stores/context';
|
|
|
import { useIsMaintenanceMode } from '~/stores/maintenanceMode';
|
|
import { useIsMaintenanceMode } from '~/stores/maintenanceMode';
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
- CommonProps, getServerSideCommonProps, getNextI18NextConfig,
|
|
|
|
|
|
|
+ CommonProps, getServerSideCommonProps, getNextI18NextConfig, useCustomTitle,
|
|
|
} from '../utils/commons';
|
|
} from '../utils/commons';
|
|
|
|
|
|
|
|
|
|
|
|
@@ -82,6 +82,7 @@ type Props = CommonProps & {
|
|
|
auditLogEnabled: boolean,
|
|
auditLogEnabled: boolean,
|
|
|
auditLogAvailableActions: SupportedActionType[],
|
|
auditLogAvailableActions: SupportedActionType[],
|
|
|
|
|
|
|
|
|
|
+ customizeTitle: string,
|
|
|
siteUrl: string,
|
|
siteUrl: string,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -207,6 +208,8 @@ const AdminMarkdownSettingsPage: NextPage<Props> = (props: Props) => {
|
|
|
useAuditLogEnabled(props.auditLogEnabled);
|
|
useAuditLogEnabled(props.auditLogEnabled);
|
|
|
useAuditLogAvailableActions(props.auditLogAvailableActions);
|
|
useAuditLogAvailableActions(props.auditLogAvailableActions);
|
|
|
|
|
|
|
|
|
|
+ useCustomizeTitle(props.customizeTitle);
|
|
|
|
|
+
|
|
|
const injectableContainers: Container<any>[] = [];
|
|
const injectableContainers: Container<any>[] = [];
|
|
|
|
|
|
|
|
if (isClient()) {
|
|
if (isClient()) {
|
|
@@ -269,7 +272,7 @@ const AdminMarkdownSettingsPage: NextPage<Props> = (props: Props) => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<Provider inject={[...injectableContainers, ...adminSecurityContainers]}>
|
|
<Provider inject={[...injectableContainers, ...adminSecurityContainers]}>
|
|
|
- <AdminLayout title={targetPage.title} selectedNavOpt={firstPath}>
|
|
|
|
|
|
|
+ <AdminLayout title={useCustomTitle(props, targetPage.title)} selectedNavOpt={firstPath} componentTitle={targetPage.title}>
|
|
|
{targetPage.component}
|
|
{targetPage.component}
|
|
|
</AdminLayout>
|
|
</AdminLayout>
|
|
|
</Provider>
|
|
</Provider>
|
|
@@ -299,6 +302,7 @@ async function injectServerConfigurations(context: GetServerSidePropsContext, pr
|
|
|
|
|
|
|
|
props.auditLogEnabled = crowi.configManager.getConfig('crowi', 'app:auditLogEnabled');
|
|
props.auditLogEnabled = crowi.configManager.getConfig('crowi', 'app:auditLogEnabled');
|
|
|
props.auditLogAvailableActions = activityService.getAvailableActions(false);
|
|
props.auditLogAvailableActions = activityService.getAvailableActions(false);
|
|
|
|
|
+ props.customizeTitle = crowi.configManager.getConfig('crowi', 'customize:title');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|