mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
fix(editor): Disable tooltip for display modes that don't support mapping (#5715)
fix(editor): Disable mapping tooltip for display modes that don't support mapping
This commit is contained in:
committed by
GitHub
parent
cd7a55ba5a
commit
fb8755ea3c
@@ -92,6 +92,8 @@ import { useSegment } from '@/stores/segment';
|
|||||||
import { externalHooks } from '@/mixins/externalHooks';
|
import { externalHooks } from '@/mixins/externalHooks';
|
||||||
import { getMappedResult } from '../utils/mappingUtils';
|
import { getMappedResult } from '../utils/mappingUtils';
|
||||||
|
|
||||||
|
const DISPLAY_MODES_WITH_DATA_MAPPING = ['table', 'json', 'schema'];
|
||||||
|
|
||||||
export default mixins(showMessage, externalHooks).extend({
|
export default mixins(showMessage, externalHooks).extend({
|
||||||
name: 'parameter-input-full',
|
name: 'parameter-input-full',
|
||||||
components: {
|
components: {
|
||||||
@@ -190,7 +192,8 @@ export default mixins(showMessage, externalHooks).extend({
|
|||||||
!this.ndvStore.isMappingOnboarded &&
|
!this.ndvStore.isMappingOnboarded &&
|
||||||
this.focused &&
|
this.focused &&
|
||||||
this.isInputTypeString &&
|
this.isInputTypeString &&
|
||||||
!this.isInputDataEmpty
|
!this.isInputDataEmpty &&
|
||||||
|
DISPLAY_MODES_WITH_DATA_MAPPING.includes(this.displayMode)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user