mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Hide data mapping tooltip in credential edit modal (#11356)
This commit is contained in:
parent
656439e871
commit
ff14dcb3a1
|
@ -1,13 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
import { useI18n } from '@/composables/useI18n';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
||||
import { EditorSelection, EditorState, type SelectionRange } from '@codemirror/state';
|
||||
import { type Completion, CompletionContext } from '@codemirror/autocomplete';
|
||||
import { datatypeCompletions } from '@/plugins/codemirror/completions/datatype.completions';
|
||||
import { watchDebounced } from '@vueuse/core';
|
||||
import { FIELDS_SECTION } from '@/plugins/codemirror/completions/constants';
|
||||
import { datatypeCompletions } from '@/plugins/codemirror/completions/datatype.completions';
|
||||
import { isCompletionSection } from '@/plugins/codemirror/completions/utils';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { type Completion, CompletionContext } from '@codemirror/autocomplete';
|
||||
import { EditorSelection, EditorState, type SelectionRange } from '@codemirror/state';
|
||||
import { watchDebounced } from '@vueuse/core';
|
||||
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
||||
|
||||
type TipId = 'executePrevious' | 'drag' | 'default' | 'dotObject' | 'dotPrimitive';
|
||||
|
||||
|
@ -36,7 +36,11 @@ const canDragToFocusedInput = computed(
|
|||
const emptyExpression = computed(() => props.unresolvedExpression.trim().length === 0);
|
||||
|
||||
const tip = computed<TipId>(() => {
|
||||
if (!ndvStore.hasInputData && ndvStore.isInputParentOfActiveNode) {
|
||||
if (
|
||||
!ndvStore.hasInputData &&
|
||||
ndvStore.isInputParentOfActiveNode &&
|
||||
ndvStore.focusedMappableInput
|
||||
) {
|
||||
return 'executePrevious';
|
||||
}
|
||||
|
||||
|
|
|
@ -539,7 +539,8 @@ const showDragnDropTip = computed(
|
|||
!isDropDisabled.value &&
|
||||
(!ndvStore.hasInputData || !isInputDataEmpty.value) &&
|
||||
!ndvStore.isMappingOnboarded &&
|
||||
ndvStore.isInputParentOfActiveNode,
|
||||
ndvStore.isInputParentOfActiveNode &&
|
||||
!props.isForCredential,
|
||||
);
|
||||
|
||||
const shouldCaptureForPosthog = computed(() => {
|
||||
|
|
Loading…
Reference in a new issue