mirror of
https://github.com/portainer/portainer.git
synced 2025-07-27 17:29:39 +02:00
feat(sidebar): sort available endpoints alphabetically (#1027)
This commit is contained in:
parent
a7df43bd45
commit
a1dd12a947
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ function ($q, $scope, $state, Settings, EndpointService, StateManager, EndpointP
|
||||||
EndpointService.endpoints()
|
EndpointService.endpoints()
|
||||||
.then(function success(data) {
|
.then(function success(data) {
|
||||||
var endpoints = data;
|
var endpoints = data;
|
||||||
$scope.endpoints = endpoints;
|
$scope.endpoints = _.sortBy(endpoints, ['Name']);
|
||||||
setActiveEndpoint(endpoints);
|
setActiveEndpoint(endpoints);
|
||||||
|
|
||||||
if (StateManager.getState().application.authentication) {
|
if (StateManager.getState().application.authentication) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue