webterminal: Sort entries in dropdown based on location

This commit is contained in:
Girish Ramakrishnan
2017-12-27 07:23:16 -08:00
parent 41eab11641
commit 9e7b10860d

View File

@@ -110,7 +110,7 @@ angular.module('Application').controller('DebugController', ['$scope', '$locatio
$scope.logs.push({ name: 'Box', type: 'platform', value: 'box', url: Client.makeURL('/api/v1/cloudron/logs?units=box') });
$scope.logs.push({ name: 'Mail', type: 'platform', value: 'mail', url: Client.makeURL('/api/v1/cloudron/logs?units=mail') });
Client.getInstalledApps().forEach(function (app) {
Client.getInstalledApps().sort(function (app1, app2) { return app1.fqdn.localeCompare(app2.fqdn); }).forEach(function (app) {
$scope.logs.push({
type: 'app',
value: app.id,