mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08: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:
parent
cd7a55ba5a
commit
fb8755ea3c
|
@ -92,6 +92,8 @@ import { useSegment } from '@/stores/segment';
|
|||
import { externalHooks } from '@/mixins/externalHooks';
|
||||
import { getMappedResult } from '../utils/mappingUtils';
|
||||
|
||||
const DISPLAY_MODES_WITH_DATA_MAPPING = ['table', 'json', 'schema'];
|
||||
|
||||
export default mixins(showMessage, externalHooks).extend({
|
||||
name: 'parameter-input-full',
|
||||
components: {
|
||||
|
@ -190,7 +192,8 @@ export default mixins(showMessage, externalHooks).extend({
|
|||
!this.ndvStore.isMappingOnboarded &&
|
||||
this.focused &&
|
||||
this.isInputTypeString &&
|
||||
!this.isInputDataEmpty
|
||||
!this.isInputDataEmpty &&
|
||||
DISPLAY_MODES_WITH_DATA_MAPPING.includes(this.displayMode)
|
||||
);
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue