[bugfix] Fix queue not updating with completed task images (#4936)

Co-authored-by: Jennifer Weber <weberjc@MacBookPro.lan>
This commit is contained in:
Jennifer Weber
2025-08-11 22:36:43 -07:00
committed by GitHub
parent 2138ceea80
commit a055ec2dff

View File

@@ -189,6 +189,10 @@ const onStatus = async (e: CustomEvent<StatusWsMessageStatus>) => {
await queueStore.update()
}
const onExecutionSuccess = async () => {
await queueStore.update()
}
const reconnectingMessage: ToastMessageOptions = {
severity: 'error',
summary: t('g.reconnecting')
@@ -214,6 +218,7 @@ const onReconnected = () => {
onMounted(() => {
api.addEventListener('status', onStatus)
api.addEventListener('execution_success', onExecutionSuccess)
api.addEventListener('reconnecting', onReconnecting)
api.addEventListener('reconnected', onReconnected)
executionStore.bindExecutionEvents()
@@ -227,6 +232,7 @@ onMounted(() => {
onBeforeUnmount(() => {
api.removeEventListener('status', onStatus)
api.removeEventListener('execution_success', onExecutionSuccess)
api.removeEventListener('reconnecting', onReconnecting)
api.removeEventListener('reconnected', onReconnected)
executionStore.unbindExecutionEvents()