mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix: Add back mapping hint when parameter is focused (#4634)
This commit is contained in:
parent
376a0d000a
commit
b35172e442
|
@ -53,7 +53,7 @@
|
|||
:class="{
|
||||
[$style.header]: true,
|
||||
[$style.draggableHeader]: mappingEnabled,
|
||||
[$style.activeHeader]: i === activeColumn && mappingEnabled,
|
||||
[$style.activeHeader]: (i === activeColumn || forceShowGrip) && mappingEnabled,
|
||||
[$style.draggingHeader]: isDragging,
|
||||
}"
|
||||
>
|
||||
|
@ -202,6 +202,7 @@ export default mixins(externalHooks).extend({
|
|||
data() {
|
||||
return {
|
||||
activeColumn: -1,
|
||||
forceShowGrip: false,
|
||||
draggedColumn: false,
|
||||
draggingPath: null as null | string,
|
||||
hoveringPath: null as null | string,
|
||||
|
@ -234,6 +235,9 @@ export default mixins(externalHooks).extend({
|
|||
tableData(): ITableData {
|
||||
return this.convertToTable(this.inputData);
|
||||
},
|
||||
focusedMappableInput(): string {
|
||||
return this.ndvStore.focusedMappableInput;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
shorten,
|
||||
|
@ -494,6 +498,16 @@ export default mixins(externalHooks).extend({
|
|||
this.$emit('displayModeChange', 'json');
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
focusedMappableInput(curr: boolean) {
|
||||
setTimeout(
|
||||
() => {
|
||||
this.forceShowGrip = !!this.focusedMappableInput;
|
||||
},
|
||||
curr ? 300 : 150,
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue