mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(log-viewer): use only one switch to manage collection/autoscroll (#1713)
* feat(log-viewer): use only one switch to manage collection/autoscroll * feat(log-viewer): add the ability to clear selection * style(log-viewer): update unselect button design
This commit is contained in:
parent
28c73323bf
commit
aa41fd02ef
2 changed files with 12 additions and 17 deletions
|
@ -15,13 +15,17 @@ function (clipboard) {
|
|||
this.copy = function() {
|
||||
clipboard.copyText(this.state.filteredLogs);
|
||||
$('#refreshRateChange').show();
|
||||
$('#refreshRateChange').fadeOut(1500);
|
||||
$('#refreshRateChange').fadeOut(2000);
|
||||
};
|
||||
|
||||
this.copySelection = function() {
|
||||
clipboard.copyText(this.state.selectedLines);
|
||||
$('#refreshRateChange').show();
|
||||
$('#refreshRateChange').fadeOut(1500);
|
||||
$('#refreshRateChange').fadeOut(2000);
|
||||
};
|
||||
|
||||
this.clearSelection = function() {
|
||||
this.state.selectedLines = [];
|
||||
};
|
||||
|
||||
this.selectLine = function(line) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue