Remove log download in support view

This has moved to the logs view
This commit is contained in:
Johannes Zellner
2017-08-07 20:54:16 +02:00
parent af08f4e7b6
commit 13b067eb88
2 changed files with 0 additions and 42 deletions

View File

@@ -13,11 +13,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
description: ''
};
$scope.logs = {
types: null,
selectedUrl: '' // index into types
};
$scope.sshSupportEnabled = false;
function resetFeedback() {
@@ -63,18 +58,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
}
};
$scope.populateLogTypes = function () {
$scope.logs.types = [
{ name: 'System (All)', url: Client.makeURL('/api/v1/cloudron/logs?units=all') },
{ name: 'Box', url: Client.makeURL('/api/v1/cloudron/logs?units=box') },
{ name: 'Mail', url: Client.makeURL('/api/v1/cloudron/logs?units=mail') }
];
Client.getInstalledApps().forEach(function (app) {
$scope.logs.types.push({ name: app.fqdn, url: Client.makeURL('/api/v1/apps/' + app.id + '/logs') });
});
};
Client.onReady(function () {
Client.getAuthorizedKeys(function (error, keys) {
if (error) return console.error(error);
@@ -83,7 +66,5 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
});
});
Client.onReady($scope.populateLogTypes);
$('.modal-backdrop').remove();
}]);