Try to show more useful details for event results
This commit is contained in:
parent
8f6989d902
commit
2bfd4318d5
13
src/Job.vue
13
src/Job.vue
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user