Fix some formatting

This commit is contained in:
Adam Goldsmith 2020-01-16 11:37:55 -05:00
parent dcaceffac6
commit a3cbf231f0
2 changed files with 6 additions and 7 deletions

View File

@ -1,13 +1,12 @@
<template>
<div>
<label>
Show Raw Events JSON <input type="checkbox" v-model="showRawEvents"
/></label>
Show Raw Events JSON <input type="checkbox" v-model="showRawEvents" />
</label>
<label>
Hide
<code>saltutil.find_job</code>
jobs <input type="checkbox" v-model="hideFindJob"
/></label>
Hide <code>saltutil.find_job</code> jobs
<input type="checkbox" v-model="hideFindJob" />
</label>
{{
!evtSource || evtSource.readyState == evtSource.CLOSED
? 'Disconnected'

View File

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