File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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+
192196const reconnectingMessage: ToastMessageOptions = {
193197 severity: ' error' ,
194198 summary: t (' g.reconnecting' )
@@ -214,6 +218,7 @@ const onReconnected = () => {
214218
215219onMounted (() => {
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
228233onBeforeUnmount (() => {
229234 api .removeEventListener (' status' , onStatus )
235+ api .removeEventListener (' execution_success' , onExecutionSuccess )
230236 api .removeEventListener (' reconnecting' , onReconnecting )
231237 api .removeEventListener (' reconnected' , onReconnected )
232238 executionStore .unbindExecutionEvents ()
You can’t perform that action at this time.
0 commit comments