Try to show more useful details for event results

This commit is contained in:
Adam Goldsmith 2021-10-18 01:02:56 -04:00
parent 8f6989d902
commit 2bfd4318d5

View File

@ -23,7 +23,18 @@
<summary>{{ event_name(event) }}</summary>
<pre v-if="showRawEvents">{{ JSON.stringify(event, null, 2) }}</pre>
<div v-if="isJobEventType(event, 'prog')">
<pre>{{ JSON.stringify(event.data.data, null, 2) }}</pre>
<div v-if="event.data.data.ret && event.data.data.ret.changes">
<pre v-if="event.data.data.ret.changes.ret">{{
event.data.data.ret.changes.ret
}}</pre>
<pre v-else-if="event.data.data.ret.changes.stdout">{{
event.data.data.ret.changes.stdout
}}</pre>
<pre v-else-if="event.data.data.ret.comment">{{
event.data.data.ret.comment
}}</pre>
</div>
<pre v-else>{{ JSON.stringify(event.data.data, null, 2) }}</pre>
</div>
<div v-else-if="isJobEventType(event, 'ret')">
{{ event.data.jid }}: {{ event.data.fun }}