Skip to content

Commit 0c6b8fe

Browse files
authored
ui: Update header notice if job failed (#5245)
1 parent 6cd5b36 commit 0c6b8fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ui/src/utils/plugins.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ export const pollJobPlugin = {
121121
duration: 0
122122
})
123123
}
124+
store.dispatch('AddHeaderNotice', {
125+
key: jobId,
126+
title: title,
127+
description: description,
128+
status: 'failed',
129+
duration: 2
130+
})
124131
if (!action || !('isFetchData' in action) || (action.isFetchData)) {
125132
eventBus.$emit('async-job-complete', action)
126133
}

0 commit comments

Comments
 (0)