Add terminal action to apps grid

This commit is contained in:
Johannes Zellner
2018-01-16 16:30:15 +01:00
parent 98aa785ad0
commit a954a23add
2 changed files with 9 additions and 1 deletions

View File

@@ -431,6 +431,10 @@
<a href="" ng-click="appConfigure.show(app)" title="Repair App"><i class="fa fa-wrench scale"></i></a>
</div>
<div>
<a href="" ng-click="showTerminal(app)" title="Terminal"><i class="fa fa-terminal scale"></i></a>
</div>
<div>
<a href="" ng-click="showLogs(app)" title="Logs"><i class="fa fa-file-text scale"></i></a>
</div>

View File

@@ -370,7 +370,11 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
};
$scope.showLogs = function (app) {
window.open('/logs.html?id=' + app.id, 'Cloudron Logs', 'width=1024,height=800');
window.open('/logs.html?id=' + app.id, 'Logs', 'width=1024,height=800');
};
$scope.showTerminal = function (app) {
window.open('/terminal.html?id=' + app.id, 'Terminal', 'width=1024,height=800');
};
$scope.showError = function (app) {