Feature Management: UI improvements (#76866)
* Feature Management: UI improvements * update UI logic --------- Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
This commit is contained in:
co-authored by
Michael Mandrus
parent
c4bf32fa2d
commit
7869ca1932
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
"github.com/grafana/grafana/pkg/api/response"
|
||||
@@ -36,6 +37,9 @@ func (hs *HTTPServer) GetFeatureToggles(ctx *contextmodel.ReqContext) response.R
|
||||
}
|
||||
|
||||
dtos = append(dtos, dto)
|
||||
sort.Slice(dtos, func(i, j int) bool {
|
||||
return dtos[i].Name < dtos[j].Name
|
||||
})
|
||||
}
|
||||
|
||||
return response.JSON(http.StatusOK, dtos)
|
||||
|
||||
Reference in New Issue
Block a user