mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 09:35:37 +00:00
Work on log support
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { marshalLogsJsonToHtml } from './marshaller.js';
|
||||
|
||||
class ActionButton extends window.HTMLButtonElement {
|
||||
constructFromJson (json) {
|
||||
this.updateIterationTimestamp = 0;
|
||||
@@ -40,6 +42,8 @@ class ActionButton extends window.HTMLButtonElement {
|
||||
|
||||
window.fetch(this.actionCallUrl).then(res => res.json()
|
||||
).then((json) => {
|
||||
marshalLogsJsonToHtml({"logs": [json.logEntry]})
|
||||
|
||||
if (json.timedOut) {
|
||||
this.onActionResult('actionTimeout', 'Timed out')
|
||||
} else if (json.exitCode !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user