mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 17:45:36 +00:00
bugfix: #192 repeating logs
This commit is contained in:
@@ -10,6 +10,8 @@ export function initMarshaller () {
|
|||||||
|
|
||||||
window.executionDialog = new ExecutionDialog()
|
window.executionDialog = new ExecutionDialog()
|
||||||
|
|
||||||
|
window.logEntries = {}
|
||||||
|
|
||||||
window.addEventListener('ExecutionFinished', onExecutionFinished)
|
window.addEventListener('ExecutionFinished', onExecutionFinished)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,6 +377,14 @@ function marshalDirectory (item, section) {
|
|||||||
|
|
||||||
export function marshalLogsJsonToHtml (json) {
|
export function marshalLogsJsonToHtml (json) {
|
||||||
for (const logEntry of json.logs) {
|
for (const logEntry of json.logs) {
|
||||||
|
const existing = window.logEntries[logEntry.executionTrackingId]
|
||||||
|
|
||||||
|
if (existing !== undefined) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
window.logEntries[logEntry.executionTrackingId] = logEntry
|
||||||
|
|
||||||
const tpl = document.getElementById('tplLogRow')
|
const tpl = document.getElementById('tplLogRow')
|
||||||
const row = tpl.content.querySelector('tr').cloneNode(true)
|
const row = tpl.content.querySelector('tr').cloneNode(true)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user