Also open platform and email logs in a new tab instead of a window
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user