Skip to content

Commit

Permalink
fix(editor): Fix success state for disabled nodes in new canvas (no-c…
Browse files Browse the repository at this point in the history
…hangelog) (#11039)
  • Loading branch information
alexgrozav authored Oct 1, 2024
1 parent e04b980 commit 3191912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function openContextMenu(event: MouseEvent) {
<FontAwesomeIcon icon="bolt" size="lg" />
</div>
</N8nTooltip>
<CanvasNodeStatusIcons :class="$style.statusIcons" />
<CanvasNodeStatusIcons v-if="!isDisabled" :class="$style.statusIcons" />
<CanvasNodeDisabledStrikeThrough v-if="isStrikethroughVisible" />
<div :class="$style.description">
<div v-if="label" :class="$style.label">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<script setup lang="ts">
import { computed, useCssModule } from 'vue';
import { useCanvasNode } from '@/composables/useCanvasNode';
const $style = useCssModule();
const isSuccessStatus = computed(
() => false,
// @TODO Implement this
// () => !['unknown'].includes(node.status) && workflowDataItems > 0,
);
const { hasRunData } = useCanvasNode();
const classes = computed(() => {
return {
[$style.disabledStrikeThrough]: true,
[$style.success]: isSuccessStatus.value,
[$style.success]: hasRunData.value,
};
});
</script>
Expand Down

0 comments on commit 3191912

Please sign in to comment.