|
@@ -29,6 +29,7 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
currentRecentCreatedLimit: appContainer.config.recentCreatedLimit,
|
|
currentRecentCreatedLimit: appContainer.config.recentCreatedLimit,
|
|
|
currentHighlightJsStyleId: appContainer.config.highlightJsStyle,
|
|
currentHighlightJsStyleId: appContainer.config.highlightJsStyle,
|
|
|
isHighlightJsStyleBorderEnabled: appContainer.config.highlightJsStyleBorder,
|
|
isHighlightJsStyleBorderEnabled: appContainer.config.highlightJsStyleBorder,
|
|
|
|
|
+ currentCustomizeTitle: appContainer.config.customizeTitle,
|
|
|
currentCustomizeHeader: appContainer.config.customizeHeader,
|
|
currentCustomizeHeader: appContainer.config.customizeHeader,
|
|
|
currentCustomizeCss: appContainer.config.customizeCss,
|
|
currentCustomizeCss: appContainer.config.customizeCss,
|
|
|
currentCustomizeScript: appContainer.config.customizeScript,
|
|
currentCustomizeScript: appContainer.config.customizeScript,
|
|
@@ -154,6 +155,13 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
this.setState({ isHighlightJsStyleBorderEnabled: !this.state.isHighlightJsStyleBorderEnabled });
|
|
this.setState({ isHighlightJsStyleBorderEnabled: !this.state.isHighlightJsStyleBorderEnabled });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Change customize Title
|
|
|
|
|
+ */
|
|
|
|
|
+ changeCustomizeTitle(inputValue) {
|
|
|
|
|
+ this.setState({ currentCustomizeTitle: inputValue });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Change customize Html header
|
|
* Change customize Html header
|
|
|
*/
|
|
*/
|
|
@@ -233,6 +241,20 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
return customizedParams;
|
|
return customizedParams;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Update customTitle
|
|
|
|
|
+ * @memberOf AdminCustomizeContainer
|
|
|
|
|
+ * @return {string} Customize title
|
|
|
|
|
+ */
|
|
|
|
|
+ async updateCustomizeTitle() {
|
|
|
|
|
+ // TODO create apiV3
|
|
|
|
|
+ const response = await this.appContainer.apiv3.put('/customize-setting/customizeTitle', {
|
|
|
|
|
+ customizeTitle: this.state.currentCustomizeTitle,
|
|
|
|
|
+ });
|
|
|
|
|
+ const { customizedParams } = response.data;
|
|
|
|
|
+ return customizedParams;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Update customHeader
|
|
* Update customHeader
|
|
|
* @memberOf AdminCustomizeContainer
|
|
* @memberOf AdminCustomizeContainer
|