|
|
@@ -45,54 +45,70 @@ class CustomizeBehaviorSetting extends React.Component {
|
|
|
<h2>{t('customize_page.Function')}</h2>
|
|
|
<p className="well">{ t('customize_page.function_choose') }</p>
|
|
|
|
|
|
- <CustomizeFunctionOption
|
|
|
- optionId="isEnabledTimeline"
|
|
|
- label={t('customize_page.Timeline function')}
|
|
|
- isChecked={adminCustomizeContainer.state.isEnabledTimeline}
|
|
|
- onChecked={() => { adminCustomizeContainer.switchEnableTimeline() }}
|
|
|
- >
|
|
|
- <p className="help-block">
|
|
|
- { t('customize_page.subpage_display') }
|
|
|
- </p>
|
|
|
- <p className="help-block">
|
|
|
- { t('customize_page.performance_decrease') }<br />
|
|
|
- { t('customize_page.list_page_display') }
|
|
|
- </p>
|
|
|
- </CustomizeFunctionOption>
|
|
|
-
|
|
|
- <CustomizeFunctionOption
|
|
|
- optionId="isSavedStatesOfTabChanges"
|
|
|
- label={t('customize_page.tab_switch')}
|
|
|
- isChecked={adminCustomizeContainer.state.isSavedStatesOfTabChanges}
|
|
|
- onChecked={() => { adminCustomizeContainer.switchSavedStatesOfTabChanges() }}
|
|
|
- >
|
|
|
- <p className="help-block">
|
|
|
- { t('customize_page.save_edit') }<br />
|
|
|
- { t('customize_page.by_invalidating') }
|
|
|
- </p>
|
|
|
- </CustomizeFunctionOption>
|
|
|
-
|
|
|
- <CustomizeFunctionOption
|
|
|
- optionId="isEnabledAttachTitleHeader"
|
|
|
- label={t('customize_page.attach_title_header')}
|
|
|
- isChecked={adminCustomizeContainer.state.isEnabledAttachTitleHeader}
|
|
|
- onChecked={() => { adminCustomizeContainer.switchEnabledAttachTitleHeader() }}
|
|
|
- >
|
|
|
- <p className="help-block">
|
|
|
- { t('customize_page.attach_title_header_desc') }
|
|
|
- </p>
|
|
|
- </CustomizeFunctionOption>
|
|
|
-
|
|
|
- <AdminDropdownOption
|
|
|
- label={t('customize_page.recent_created__n_draft_num_desc')}
|
|
|
- value={adminCustomizeContainer.state.currentRecentCreatedLimit}
|
|
|
- onChange={(value) => { adminCustomizeContainer.switchRecentCreatedLimit(value) }}
|
|
|
- options={[10, 30, 50]}
|
|
|
- >
|
|
|
- <p className="help-block">
|
|
|
- { t('customize_page.recently_created_n_draft_num_desc') }
|
|
|
- </p>
|
|
|
- </AdminDropdownOption>
|
|
|
+ <div className="form-group row">
|
|
|
+ <div className="col-xs-offset-2 col-xs-8 text-left">
|
|
|
+ <CustomizeFunctionOption
|
|
|
+ optionId="isEnabledTimeline"
|
|
|
+ label={t('customize_page.Timeline function')}
|
|
|
+ isChecked={adminCustomizeContainer.state.isEnabledTimeline}
|
|
|
+ onChecked={() => { adminCustomizeContainer.switchEnableTimeline() }}
|
|
|
+ >
|
|
|
+ <p className="help-block">
|
|
|
+ { t('customize_page.subpage_display') }
|
|
|
+ </p>
|
|
|
+ <p className="help-block">
|
|
|
+ { t('customize_page.performance_decrease') }<br />
|
|
|
+ { t('customize_page.list_page_display') }
|
|
|
+ </p>
|
|
|
+ </CustomizeFunctionOption>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="form-group row">
|
|
|
+ <div className="col-xs-offset-2 col-xs-8 text-left">
|
|
|
+ <CustomizeFunctionOption
|
|
|
+ optionId="isSavedStatesOfTabChanges"
|
|
|
+ label={t('customize_page.tab_switch')}
|
|
|
+ isChecked={adminCustomizeContainer.state.isSavedStatesOfTabChanges}
|
|
|
+ onChecked={() => { adminCustomizeContainer.switchSavedStatesOfTabChanges() }}
|
|
|
+ >
|
|
|
+ <p className="help-block">
|
|
|
+ { t('customize_page.save_edit') }<br />
|
|
|
+ { t('customize_page.by_invalidating') }
|
|
|
+ </p>
|
|
|
+ </CustomizeFunctionOption>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="form-group row">
|
|
|
+ <div className="col-xs-offset-2 col-xs-8 text-left">
|
|
|
+ <CustomizeFunctionOption
|
|
|
+ optionId="isEnabledAttachTitleHeader"
|
|
|
+ label={t('customize_page.attach_title_header')}
|
|
|
+ isChecked={adminCustomizeContainer.state.isEnabledAttachTitleHeader}
|
|
|
+ onChecked={() => { adminCustomizeContainer.switchEnabledAttachTitleHeader() }}
|
|
|
+ >
|
|
|
+ <p className="help-block">
|
|
|
+ { t('customize_page.attach_title_header_desc') }
|
|
|
+ </p>
|
|
|
+ </CustomizeFunctionOption>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="form-group row">
|
|
|
+ <div className="col-xs-offset-2 col-xs-8 text-left">
|
|
|
+ <AdminDropdownOption
|
|
|
+ label={t('customize_page.recent_created__n_draft_num_desc')}
|
|
|
+ value={adminCustomizeContainer.state.currentRecentCreatedLimit}
|
|
|
+ onChange={(value) => { adminCustomizeContainer.switchRecentCreatedLimit(value) }}
|
|
|
+ options={[10, 30, 50]}
|
|
|
+ >
|
|
|
+ <p className="help-block">
|
|
|
+ { t('customize_page.recently_created_n_draft_num_desc') }
|
|
|
+ </p>
|
|
|
+ </AdminDropdownOption>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<AdminUpdateButtonRow onClick={this.onClickSubmit} />
|
|
|
</React.Fragment>
|