Also open platform and email logs in a new tab instead of a window

This commit is contained in:
Johannes Zellner
2018-06-15 16:45:34 +02:00
parent f5060a0d4f
commit ce0a1ce38a
4 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -586,7 +586,7 @@
<p>
Logs are for all email domains on this Cloudron.
</p>
<button type="button" class="btn btn-primary" ng-click="showLogs()">Show Logs</button>
<a class="btn btn-primary" href="/logs.html?id=mail" target="_blank">Show Logs</a>
</div>
</div>
</div>
-4
View File
@@ -27,10 +27,6 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
{ name: 'PTR', value: 'ptr' }
];
$scope.showLogs = function () {
window.open('/logs.html?id=mail', 'Logs', 'width=1024,height=800').focus();
};
$scope.showView = function (view) {
// wait for dialog to be fully closed to avoid modal behavior breakage when moving to a different view already
$('.modal').on('hidden.bs.modal', function () {
+1 -1
View File
@@ -60,7 +60,7 @@
<p>
Please be careful when uploading these logs to a public server since they may contain sensitive information.
</p>
<button type="button" class="btn btn-primary" ng-click="showLogs()">Show Logs</button>
<a class="btn btn-primary" href="/logs.html?id=box" target="_blank">Show Logs</a>
</div>
</div>
</div>
-4
View File
@@ -63,10 +63,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
}
};
$scope.showLogs = function () {
window.open('/logs.html?id=box', 'Logs', 'width=1024,height=800').focus();
};
Client.onReady(function () {
Client.getAuthorizedKeys(function (error, keys) {
if (error) return console.error(error);