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