|
@@ -21,7 +21,6 @@ const CustomizeSettingContents = dynamic(
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
type PageProps = {
|
|
type PageProps = {
|
|
|
- isDefaultBrandLogoUsed: boolean;
|
|
|
|
|
isCustomizedLogoUploaded: boolean;
|
|
isCustomizedLogoUploaded: boolean;
|
|
|
customTitleTemplate?: string;
|
|
customTitleTemplate?: string;
|
|
|
};
|
|
};
|
|
@@ -34,7 +33,6 @@ const AdminCustomizeSettingsPage: NextPageWithLayout<Props> = (
|
|
|
) => {
|
|
) => {
|
|
|
useHydrateAtoms(
|
|
useHydrateAtoms(
|
|
|
[
|
|
[
|
|
|
- [atoms.isDefaultLogoAtom, props.isDefaultBrandLogoUsed],
|
|
|
|
|
[atoms.customTitleTemplateAtom, props.customTitleTemplate],
|
|
[atoms.customTitleTemplateAtom, props.customTitleTemplate],
|
|
|
[isCustomizedLogoUploadedAtom, props.isCustomizedLogoUploaded],
|
|
[isCustomizedLogoUploadedAtom, props.isCustomizedLogoUploaded],
|
|
|
],
|
|
],
|
|
@@ -66,8 +64,6 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
|
|
|
|
|
|
|
|
const customizePropsFragment = {
|
|
const customizePropsFragment = {
|
|
|
props: {
|
|
props: {
|
|
|
- isDefaultBrandLogoUsed:
|
|
|
|
|
- await crowi.attachmentService.isDefaultBrandLogoUsed(),
|
|
|
|
|
isCustomizedLogoUploaded:
|
|
isCustomizedLogoUploaded:
|
|
|
await crowi.attachmentService.isBrandLogoExist(),
|
|
await crowi.attachmentService.isBrandLogoExist(),
|
|
|
customTitleTemplate: crowi.configManager.getConfig('customize:title'),
|
|
customTitleTemplate: crowi.configManager.getConfig('customize:title'),
|