when requesting Key Store, sort in ascending order by Name

This commit is contained in:
laeshiny 2017-03-17 00:18:34 +09:00
parent 6c80cee3ea
commit db644f998b

View File

@ -1,7 +1,7 @@
define(function () {
app.registerController('ProjectKeysCtrl', ['$scope', '$http', '$uibModal', 'Project', '$rootScope', function ($scope, $http, $modal, Project, $rootScope) {
$scope.reload = function () {
$http.get(Project.getURL() + '/keys').success(function (keys) {
$http.get(Project.getURL() + '/keys?sort=name&order=asc').success(function (keys) {
$scope.keys = keys;
});
}