Merge pull request #81 from safing/feature/option-categories

Add category annotations to options
This commit is contained in:
Patrick Pacher 2020-09-22 16:45:36 +02:00 committed by GitHub
commit 93a0b27ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,7 @@ func registerConfig() error {
RequiresRestart: true, RequiresRestart: true,
Annotations: config.Annotations{ Annotations: config.Annotations{
config.DisplayOrderAnnotation: 128, config.DisplayOrderAnnotation: 128,
config.CategoryAnnotation: "Development",
}, },
}) })
if err != nil { if err != nil {

View file

@ -48,6 +48,7 @@ func registerExpertiseLevelOption() {
DefaultValue: ExpertiseLevelNameUser, DefaultValue: ExpertiseLevelNameUser,
Annotations: Annotations{ Annotations: Annotations{
DisplayHintAnnotation: DisplayHintOneOf, DisplayHintAnnotation: DisplayHintOneOf,
CategoryAnnotation: "Expertise & Release",
}, },
PossibleValues: []PossibleValue{ PossibleValues: []PossibleValue{
{ {

View file

@ -46,6 +46,7 @@ func registerReleaseLevelOption() {
DefaultValue: ReleaseLevelNameStable, DefaultValue: ReleaseLevelNameStable,
Annotations: Annotations{ Annotations: Annotations{
DisplayHintAnnotation: DisplayHintOneOf, DisplayHintAnnotation: DisplayHintOneOf,
CategoryAnnotation: "Expertise & Release",
}, },
PossibleValues: []PossibleValue{ PossibleValues: []PossibleValue{
{ {