frontend: fix clear view in logs viewer

This commit is contained in:
Johannes Zellner
2024-07-25 17:44:20 +02:00
parent cbc46a8229
commit 9f9fde5811
+1 -2
View File
@@ -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]&nbsp;' }</span> <span>${line.html}</span>`;