|
@@ -34,6 +34,7 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
isEnabledStaleNotification: false,
|
|
isEnabledStaleNotification: false,
|
|
|
isAllReplyShown: false,
|
|
isAllReplyShown: false,
|
|
|
isSearchScopeChildrenAsDefault: false,
|
|
isSearchScopeChildrenAsDefault: false,
|
|
|
|
|
+ isEnabledMarp: false,
|
|
|
currentCustomizeTitle: '',
|
|
currentCustomizeTitle: '',
|
|
|
currentCustomizeNoscript: '',
|
|
currentCustomizeNoscript: '',
|
|
|
currentCustomizeCss: '',
|
|
currentCustomizeCss: '',
|
|
@@ -71,6 +72,7 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
isEnabledStaleNotification: customizeParams.isEnabledStaleNotification,
|
|
isEnabledStaleNotification: customizeParams.isEnabledStaleNotification,
|
|
|
isAllReplyShown: customizeParams.isAllReplyShown,
|
|
isAllReplyShown: customizeParams.isAllReplyShown,
|
|
|
isSearchScopeChildrenAsDefault: customizeParams.isSearchScopeChildrenAsDefault,
|
|
isSearchScopeChildrenAsDefault: customizeParams.isSearchScopeChildrenAsDefault,
|
|
|
|
|
+ isEnabledMarp: customizeParams.isEnabledMarp,
|
|
|
currentCustomizeTitle: customizeParams.customizeTitle,
|
|
currentCustomizeTitle: customizeParams.customizeTitle,
|
|
|
currentCustomizeNoscript: customizeParams.customizeNoscript,
|
|
currentCustomizeNoscript: customizeParams.customizeNoscript,
|
|
|
currentCustomizeCss: customizeParams.customizeCss,
|
|
currentCustomizeCss: customizeParams.customizeCss,
|
|
@@ -149,6 +151,13 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
this.setState({ isSearchScopeChildrenAsDefault: !this.state.isSearchScopeChildrenAsDefault });
|
|
this.setState({ isSearchScopeChildrenAsDefault: !this.state.isSearchScopeChildrenAsDefault });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Switch isEnabledMarp
|
|
|
|
|
+ */
|
|
|
|
|
+ switchIsEnabledMarp() {
|
|
|
|
|
+ this.setState({ isEnabledMarp: !this.state.isEnabledMarp });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Change customize Title
|
|
* Change customize Title
|
|
|
*/
|
|
*/
|
|
@@ -194,6 +203,7 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
isEnabledStaleNotification: this.state.isEnabledStaleNotification,
|
|
isEnabledStaleNotification: this.state.isEnabledStaleNotification,
|
|
|
isAllReplyShown: this.state.isAllReplyShown,
|
|
isAllReplyShown: this.state.isAllReplyShown,
|
|
|
isSearchScopeChildrenAsDefault: this.state.isSearchScopeChildrenAsDefault,
|
|
isSearchScopeChildrenAsDefault: this.state.isSearchScopeChildrenAsDefault,
|
|
|
|
|
+ isEnabledMarp: this.state.isEnabledMarp,
|
|
|
});
|
|
});
|
|
|
const { customizedParams } = response.data;
|
|
const { customizedParams } = response.data;
|
|
|
this.setState({
|
|
this.setState({
|
|
@@ -206,6 +216,7 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
isEnabledStaleNotification: customizedParams.isEnabledStaleNotification,
|
|
isEnabledStaleNotification: customizedParams.isEnabledStaleNotification,
|
|
|
isAllReplyShown: customizedParams.isAllReplyShown,
|
|
isAllReplyShown: customizedParams.isAllReplyShown,
|
|
|
isSearchScopeChildrenAsDefault: customizedParams.isSearchScopeChildrenAsDefault,
|
|
isSearchScopeChildrenAsDefault: customizedParams.isSearchScopeChildrenAsDefault,
|
|
|
|
|
+ isEnabledMarp: this.state.isEnabledMarp,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|