-
Notifications
You must be signed in to change notification settings - Fork 27
Address HANA cluster settings modal quirks #463
Address HANA cluster settings modal quirks #463
Conversation
dottorblaster
commented
Nov 16, 2021
•
edited
Loading
edited
- the modal closes when we successfully save settings
- now the modal closes when we click on the backdrop
- we have a close button in the upper corner
- pointer turns to a hand when hovering the accordion toggle
- catalog results are now sorted and don't get mixed up every refresh
Especially: * now the modal closes when we click on the backdrop * we have a close button in the upper corner * pointer turns to a hand when hovering the accordion toggle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This addresses a lot of #454 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dottorblaster A bit late, but a change is needed
@@ -60,6 +61,11 @@ func ApiChecksCatalogHandler(s services.ChecksService) gin.HandlerFunc { | |||
g := JSONChecksGroup{Group: group.Group, Checks: group.Checks} | |||
groupedCatalog = append(groupedCatalog, &g) | |||
} | |||
|
|||
sort.SliceStable(groupedCatalog, func(i, j int) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @dottorblaster ,
This is not the correct way of ordering, it is not alphabetical hehe
The order of the groups is based on the name of the checks
This was already codified this way here: https://github.com/trento-project/trento/blob/main/web/models/check.go#L91
The correct fix would be to add the ordering in line 59 like this:
for _, group := range checkGroups.OrderByName() {