fix(editor): Use previous node for FocusPanel execution hint (no-changelog) (#17575)

This commit is contained in:
Charlie Kolb
2025-07-25 10:14:31 +02:00
committed by GitHub
parent 8660057350
commit 4f01bd1ecf
6 changed files with 31 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ interface Props {
iconOrientation?: 'horizontal' | 'vertical';
loading?: boolean;
loadingMessage?: string;
isContentOverridden?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
@@ -31,6 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
iconOrientation: 'vertical',
loading: false,
loadingMessage: () => useI18n().baseText('genericHelpers.loading'),
isContentOverridden: false,
});
const emit = defineEmits<{
@@ -60,6 +62,7 @@ const canBeOpenedInFocusPanel = computed(
isFocusPanelFeatureEnabled.value &&
!props.parameter.isNodeSetting &&
!props.isReadOnly &&
!props.isContentOverridden &&
activeNode.value && // checking that it's inside ndv
(props.parameter.type === 'string' || props.parameter.type === 'json'),
);