frontend: fix clear view in logs viewer
This commit is contained in:
@@ -59,7 +59,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onClear() {
|
||||
this.logLines = [];
|
||||
while (this.$refs.linesContainer.firstChild) this.$refs.linesContainer.removeChild(this.$refs.linesContainer.firstChild);
|
||||
},
|
||||
onDownload() {
|
||||
this.logsModel.download();
|
||||
@@ -145,7 +145,6 @@ export default {
|
||||
if (lines < maxLines) ++lines;
|
||||
else this.$refs.linesContainer.removeChild(this.$refs.linesContainer.firstChild);
|
||||
|
||||
// this.logLines.push({ time, html});
|
||||
const logLine = document.createElement('div');
|
||||
logLine.className = 'log-line';
|
||||
logLine.innerHTML = `<span class="time">${line.time || '[no timestamp] ' }</span> <span>${line.html}</span>`;
|
||||
|
||||
Reference in New Issue
Block a user