Skip to content

Commit

Permalink
fix(ui): after restart, execution was not refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jan 20, 2023
1 parent c225224 commit 6faac93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</el-tab-pane>
</el-tabs>
<component
v-bind="activeTab.props"
v-bind="{...activeTab.props, ...$attrs}"
ref="tabContent"
:is="activeTab.component"
:prevent-route-info="true"
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/executions/ExecutionRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
},
methods: {
follow() {
console.log("follow")
const self = this;
this.closeSSE();
this.previousExecutionId = this.$route.params.id;
Expand Down
5 changes: 4 additions & 1 deletion ui/src/components/executions/Logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</el-form-item>
</collapse>

<log-list :level="level" :exclude-metas="['namespace', 'flowId', 'taskId', 'executionId']" :filter="filter" />
<log-list :level="level" :exclude-metas="['namespace', 'flowId', 'taskId', 'executionId']" :filter="filter" @follow="forwardEvent('follow', $event)" />
</div>
</template>

Expand Down Expand Up @@ -83,6 +83,9 @@
}
},
methods: {
forwardEvent(type, event) {
this.$emit(type, event);
},
prevent(event) {
event.preventDefault();
},
Expand Down
4 changes: 1 addition & 3 deletions ui/src/components/executions/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@
emits: ["follow"],
methods: {
forwardEvent(type, event) {
console.log("forwardEvent", type);
this.$emit(type, event);
},
restart() {
this.$emit("follow");
},
stop() {
if (!this.execution || State.isRunning(this.execution.state.current)) {
return new Date().toISOString(true)
Expand Down

0 comments on commit 6faac93

Please sign in to comment.