fix(logs): strip trailing comma [EE-1957] (#5975)

pull/5966/head^2
itsconquest 2021-11-22 09:45:18 +13:00 committed by GitHub
parent 06d25d1491
commit aa15b34add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,13 +24,13 @@ angular.module('portainer.docker').controller('LogViewerController', [
}; };
this.copy = function () { this.copy = function () {
clipboard.copyText(this.state.filteredLogs.map((log) => log.line)); clipboard.copyText(this.state.filteredLogs.map((log) => log.line).join(''));
$('#refreshRateChange').show(); $('#refreshRateChange').show();
$('#refreshRateChange').fadeOut(2000); $('#refreshRateChange').fadeOut(2000);
}; };
this.copySelection = function () { this.copySelection = function () {
clipboard.copyText(this.state.selectedLines); clipboard.copyText(this.state.selectedLines.join(''));
$('#refreshRateChange').show(); $('#refreshRateChange').show();
$('#refreshRateChange').fadeOut(2000); $('#refreshRateChange').fadeOut(2000);
}; };