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> <template>
<div> <div>
<label> <label>
Show Raw Events JSON <input type="checkbox" v-model="showRawEvents" Show Raw Events JSON <input type="checkbox" v-model="showRawEvents" />
/></label> </label>
<label> <label>
Hide Hide <code>saltutil.find_job</code> jobs
<code>saltutil.find_job</code> <input type="checkbox" v-model="hideFindJob" />
jobs <input type="checkbox" v-model="hideFindJob" </label>
/></label>
{{ {{
!evtSource || evtSource.readyState == evtSource.CLOSED !evtSource || evtSource.readyState == evtSource.CLOSED
? 'Disconnected' ? 'Disconnected'

View File

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