build: Code format

This commit is contained in:
jamesread 2025-04-08 22:14:23 +01:00
parent ec1f974f67
commit 27c287c2de
2 changed files with 17 additions and 19 deletions

View File

@ -198,17 +198,17 @@ export class ExecutionDialog {
clearInterval(window.executionDialogTicker) clearInterval(window.executionDialogTicker)
if ("type" in res && res.type == "execution-dialog-output-html") { if ('type' in res && res.type === 'execution-dialog-output-html') {
this.domOutputHtml.hidden = false this.domOutputHtml.hidden = false
this.domOutput.hidden = true this.domOutput.hidden = true
this.domOutputHtml.innerHTML = res.logEntry.output this.domOutputHtml.innerHTML = res.logEntry.output
this.domOutputHtml.hidden = false this.domOutputHtml.hidden = false
this.hideDetailsonResult = true this.hideDetailsonResult = true
} else { } else {
this.domOutput.hidden = false this.domOutput.hidden = false
this.domOutputHtml.innerHTML = '' this.domOutputHtml.innerHTML = ''
this.domOutputHtml.hidden = true this.domOutputHtml.hidden = true
} }
if (this.hideDetailsOnResult) { if (this.hideDetailsOnResult) {
this.domExecutionDetails.hidden = true this.domExecutionDetails.hidden = true
@ -229,7 +229,6 @@ export class ExecutionDialog {
this.updateDuration(res.logEntry) this.updateDuration(res.logEntry)
window.terminal.reset() window.terminal.reset()
window.terminal.write(res.logEntry.output, () => { window.terminal.write(res.logEntry.output, () => {
window.terminal.fit() window.terminal.fit()

View File

@ -187,15 +187,14 @@ function onExecutionFinished (evt) {
return return
} }
let feedbackButton = actionButton; const executionButton = document.querySelector('execution-button#execution-' + logEntry.executionTrackingId)
let feedbackButton = actionButton
switch (actionButton.popupOnStart) { switch (actionButton.popupOnStart) {
case 'execution-button': case 'execution-button':
let executionButton = document.querySelector('execution-button#execution-' + logEntry.executionTrackingId) if (executionButton != null) {
feedbackButton = executionButton
if (executionButton != null) { }
feedbackButton = executionButton
}
break break
case 'execution-dialog-output-html': case 'execution-dialog-output-html':
@ -220,7 +219,7 @@ function onExecutionFinished (evt) {
if (window.executionDialog.dlg.open && window.executionDialog.executionUuid === logEntry.uuid) { if (window.executionDialog.dlg.open && window.executionDialog.executionUuid === logEntry.uuid) {
window.executionDialog.renderExecutionResult({ window.executionDialog.renderExecutionResult({
logEntry: logEntry, logEntry: logEntry,
type: actionButton.popupOnStart, type: actionButton.popupOnStart
}) })
} }
} }