Open logs viewer in new window

This commit is contained in:
Johannes Zellner
2018-01-15 16:29:17 +01:00
parent bad947e2ac
commit f030aa95ba
2 changed files with 5 additions and 1 deletions

View File

@@ -432,7 +432,7 @@
</div> </div>
<div> <div>
<a ng-href="{{ '#/logs?id=' + app.id }}" target="_blank" title="Logs"><i class="fa fa-file-text scale"></i></a> <a href="" ng-click="showLogs(app)" title="Logs"><i class="fa fa-file-text scale"></i></a>
</div> </div>
<div> <div>

View File

@@ -369,6 +369,10 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
return false; // prevent propagation and default return false; // prevent propagation and default
}; };
$scope.showLogs = function (app) {
window.open('/logs.html?id=' + app.id, 'Cloudron Logs', 'width=1024,height=800');
};
$scope.showError = function (app) { $scope.showError = function (app) {
$scope.reset(); $scope.reset();