Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Sep 14, 2024
1 parent 94b5bed commit d0e2bf5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,9 @@ const onReconnected = () => {
const executionStore = useExecutionStore()
app.workflowManager.executionStore = executionStore
watch(
() => executionStore.executionProgress,
(newProgress) => {
console.debug('executionProgress', newProgress)
app.menu.workflows.buttonProgress.style.width = `${newProgress}%`
}
)
watchEffect(() => {
app.menu.workflows.buttonProgress.style.width = `${executionStore.executionProgress}%`
})
onMounted(() => {
api.addEventListener('status', onStatus)
Expand Down

0 comments on commit d0e2bf5

Please sign in to comment.