fix(editor): Fix success state for disabled nodes in new canvas (no-changelog) (#11039)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions

This commit is contained in:
Alex Grozav 2024-10-01 21:06:33 +03:00 committed by GitHub
parent e04b980dff
commit 3191912168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View file

@ -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">

View file

@ -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>