+
{{ startEvent.data.fun }}
@@ -48,6 +48,7 @@ export default class Job extends Vue {
@Prop(Number) readonly jid: salt.JobID;
@Prop(Boolean) readonly showRawEvents: boolean;
@Prop() readonly events: salt.JobEvent[];
+ @Prop(String) readonly hideFindJob: string;
isJobEventType(
event: salt.JobEvent,
@@ -59,7 +60,7 @@ export default class Job extends Vue {
return event.splitTag[3] === type;
}
- get startEvent(): salt.JobNewEvent {
+ get startEvent(): salt.JobNewEvent | undefined {
return this.events.find((event): event is salt.JobNewEvent =>
this.isJobEventType(event, 'new')
);
@@ -79,6 +80,17 @@ export default class Job extends Vue {
}, {});
}
+ get hidden(): boolean {
+ return (
+ this.hideFindJob &&
+ this.events.find(
+ event =>
+ !this.isJobEventType(event, 'prog') &&
+ event.data.fun === 'saltutil.find_job'
+ ) !== undefined
+ );
+ }
+
event_name(event: salt.JobEvent) {
if (this.isJobEventType(event, 'prog')) {
return `${this.event_symbol(event)} Progress: ${