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

pull/5966/head^2
itsconquest 3 years ago committed by GitHub
parent 06d25d1491
commit aa15b34add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,13 +24,13 @@ angular.module('portainer.docker').controller('LogViewerController', [
};
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').fadeOut(2000);
};
this.copySelection = function () {
clipboard.copyText(this.state.selectedLines);
clipboard.copyText(this.state.selectedLines.join(''));
$('#refreshRateChange').show();
$('#refreshRateChange').fadeOut(2000);
};

Loading…
Cancel
Save