mirror of https://github.com/portainer/portainer
fix(logs): strip trailing comma [EE-1957] (#5975)
parent
06d25d1491
commit
aa15b34add
|
@ -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…
Reference in New Issue