|
@@ -204,7 +204,6 @@ 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({
|
|
@@ -217,7 +216,6 @@ 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: customizedParams.state.isEnabledMarp,
|
|
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
@@ -226,35 +224,18 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
- * Update function
|
|
|
|
|
|
|
+ * Update presentation
|
|
|
* @memberOf AdminCustomizeContainer
|
|
* @memberOf AdminCustomizeContainer
|
|
|
*/
|
|
*/
|
|
|
async updateCustomizePresentation() {
|
|
async updateCustomizePresentation() {
|
|
|
try {
|
|
try {
|
|
|
const response = await apiv3Put('/customize-setting/presentation', {
|
|
const response = await apiv3Put('/customize-setting/presentation', {
|
|
|
- isEnabledTimeline: this.state.isEnabledTimeline,
|
|
|
|
|
- isEnabledAttachTitleHeader: this.state.isEnabledAttachTitleHeader,
|
|
|
|
|
- pageLimitationS: this.state.pageLimitationS,
|
|
|
|
|
- pageLimitationM: this.state.pageLimitationM,
|
|
|
|
|
- pageLimitationL: this.state.pageLimitationL,
|
|
|
|
|
- pageLimitationXL: this.state.pageLimitationXL,
|
|
|
|
|
- isEnabledStaleNotification: this.state.isEnabledStaleNotification,
|
|
|
|
|
- isAllReplyShown: this.state.isAllReplyShown,
|
|
|
|
|
- isSearchScopeChildrenAsDefault: this.state.isSearchScopeChildrenAsDefault,
|
|
|
|
|
isEnabledMarp: this.state.isEnabledMarp,
|
|
isEnabledMarp: this.state.isEnabledMarp,
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
const { customizedParams } = response.data;
|
|
const { customizedParams } = response.data;
|
|
|
this.setState({
|
|
this.setState({
|
|
|
- isEnabledTimeline: customizedParams.isEnabledTimeline,
|
|
|
|
|
- isEnabledAttachTitleHeader: customizedParams.isEnabledAttachTitleHeader,
|
|
|
|
|
- pageLimitationS: customizedParams.pageLimitationS,
|
|
|
|
|
- pageLimitationM: customizedParams.pageLimitationM,
|
|
|
|
|
- pageLimitationL: customizedParams.pageLimitationL,
|
|
|
|
|
- pageLimitationXL: customizedParams.pageLimitationXL,
|
|
|
|
|
- isEnabledStaleNotification: customizedParams.isEnabledStaleNotification,
|
|
|
|
|
- isAllReplyShown: customizedParams.isAllReplyShown,
|
|
|
|
|
- isSearchScopeChildrenAsDefault: customizedParams.isSearchScopeChildrenAsDefault,
|
|
|
|
|
- isEnabledMarp: customizedParams.state.isEnabledMarp,
|
|
|
|
|
|
|
+ isEnabledMarp: customizedParams.isEnabledMarp,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|