Skip to content

Commit a055ec2

Browse files
weberjcJennifer Weber
andauthored
[bugfix] Fix queue not updating with completed task images (#4936)
Co-authored-by: Jennifer Weber <[email protected]>
1 parent 2138cee commit a055ec2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/views/GraphView.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ const onStatus = async (e: CustomEvent<StatusWsMessageStatus>) => {
189189
await queueStore.update()
190190
}
191191
192+
const onExecutionSuccess = async () => {
193+
await queueStore.update()
194+
}
195+
192196
const reconnectingMessage: ToastMessageOptions = {
193197
severity: 'error',
194198
summary: t('g.reconnecting')
@@ -214,6 +218,7 @@ const onReconnected = () => {
214218
215219
onMounted(() => {
216220
api.addEventListener('status', onStatus)
221+
api.addEventListener('execution_success', onExecutionSuccess)
217222
api.addEventListener('reconnecting', onReconnecting)
218223
api.addEventListener('reconnected', onReconnected)
219224
executionStore.bindExecutionEvents()
@@ -227,6 +232,7 @@ onMounted(() => {
227232
228233
onBeforeUnmount(() => {
229234
api.removeEventListener('status', onStatus)
235+
api.removeEventListener('execution_success', onExecutionSuccess)
230236
api.removeEventListener('reconnecting', onReconnecting)
231237
api.removeEventListener('reconnected', onReconnected)
232238
executionStore.unbindExecutionEvents()

0 commit comments

Comments
 (0)