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:
Milorad FIlipović 2023-03-17 13:24:08 +01:00 committed by GitHub
parent cd7a55ba5a
commit fb8755ea3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
);
},
},