1
0
Fork 0
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:
Anthony Lapenna 2017-07-12 20:52:07 +02:00 committed by GitHub
parent a7df43bd45
commit a1dd12a947

View file

@ -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) {