Skip to content

Commit

Permalink
fix(editor): Use computed isRetriable
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Apr 5, 2024
1 parent 133ac11 commit a1277f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</div>
<div :class="$style.icons">
<n8n-action-dropdown
v-if="isExecutionRetriable(execution)"
v-if="isRetriable"
:class="[$style.icon, $style.retry]"
:items="retryExecutionActions"
activator-icon="redo"
Expand Down Expand Up @@ -133,6 +133,9 @@ export default defineComponent({
isActive(): boolean {
return this.execution.id === this.$route.params.executionId;
},
isRetriable(): boolean {
return this.isExecutionRetriable(this.execution);
},
},
methods: {
onRetryMenuItemSelect(action: string): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</n8n-button>
<ElDropdown
v-if="executionUIDetails?.name === 'error'"
v-if="isRetriable"
ref="retryDropdown"
trigger="click"
class="mr-xs"
Expand Down Expand Up @@ -190,6 +190,9 @@ export default defineComponent({
type: 'primary',
};
},
isRetriable(): boolean {
return !!this.activeExecution && this.isExecutionRetriable(this.activeExecution);
},
},
methods: {
async onDeleteExecution(): Promise<void> {
Expand Down

0 comments on commit a1277f2

Please sign in to comment.