component?: Component;
definitions: ExtendedSettingDefinition[];
subCategory?: string;
+ displaySubCategoryTitle?: boolean;
}
interface State {
}
render() {
- const { category, component, subCategory } = this.props;
+ const { category, component, subCategory, displaySubCategoryTitle } = this.props;
const { settings } = this.state;
return (
component={component}
settings={settings}
subCategory={subCategory}
+ displaySubCategoryTitle={displaySubCategoryTitle}
/>
);
}
location: Location;
settings: Array<SettingDefinitionAndValue>;
subCategory?: string;
+ displaySubCategoryTitle?: boolean;
}
export class SubCategoryDefinitionsList extends React.PureComponent<
};
render() {
- const bySubCategory = groupBy(this.props.settings, setting => setting.definition.subCategory);
+ const { displaySubCategoryTitle = true, settings, subCategory, component } = this.props;
+ const bySubCategory = groupBy(settings, setting => setting.definition.subCategory);
const subCategories = Object.keys(bySubCategory).map(key => ({
key,
name: getSubCategoryName(bySubCategory[key][0].definition.category, key),
const sortedSubCategories = sortBy(subCategories, subCategory =>
subCategory.name.toLowerCase()
);
- const filteredSubCategories = this.props.subCategory
- ? sortedSubCategories.filter(c => c.key === this.props.subCategory)
+ const filteredSubCategories = subCategory
+ ? sortedSubCategories.filter(c => c.key === subCategory)
: sortedSubCategories;
return (
<ul className="settings-sub-categories-list">
{filteredSubCategories.map(subCategory => (
<li key={subCategory.key}>
- <h2
- className="settings-sub-category-name"
- data-key={subCategory.key}
- ref={this.scrollToSubCategoryOrDefinition}>
- {subCategory.name}
- </h2>
+ {displaySubCategoryTitle && (
+ <h2
+ className="settings-sub-category-name"
+ data-key={subCategory.key}
+ ref={this.scrollToSubCategoryOrDefinition}>
+ {subCategory.name}
+ </h2>
+ )}
{subCategory.description != null && (
<div
className="settings-sub-category-description markdown"
/>
)}
<DefinitionsList
- component={this.props.component}
+ component={component}
scrollToDefinition={this.scrollToSubCategoryOrDefinition}
settings={bySubCategory[subCategory.key]}
/>
property.category.general.subProjects=Sub-projects
property.category.almintegration=DevOps Platform Integrations
property.category.authentication=Authentication
-property.category.authentication.github=
-property.category.authentication.gitlab=
-property.category.authentication.bitbucket=
-property.category.authentication.saml=
property.category.organizations=Organizations
property.category.security=Security
property.category.security.encryption=Encryption