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

@@ -24,29 +24,6 @@
<br/>
<div class="card card-large">
<div class="grid-item-top">
<div class="row animateMeOpacity">
<div class="col-lg-12">
<h3>Logs</h3>
Select the log to download
<br/>
<br/>
<form name="logsForm">
<div class="form-group">
<select class="form-control" name="type" style="width: 50%;" ng-model="logs.selectedUrl" required>
<option ng-repeat="log in logs.types" ng-value="log.url">{{ log.name }}</option>
</select>
</div>
<a class="btn btn-primary" ng-disabled="!logs.selectedUrl" ng-href="{{logs.selectedUrl}}&format=short&lines=800" target="_self"> Download </a>
</form>
</div>
</div>
</div>
</div>
<br/>
<div class="card card-large">
<div class="grid-item-top">
<div class="row animateMeOpacity">

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();
}]);