mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(editor): Mapping tooltip dismiss (#5128)
fix(editor): not using local storage directly in computed prop
This commit is contained in:
parent
b3adcbd813
commit
6deb55126e
|
@ -103,6 +103,7 @@ export default mixins(showMessage).extend({
|
||||||
forceShowExpression: false,
|
forceShowExpression: false,
|
||||||
dataMappingTooltipButtons: [] as IN8nButton[],
|
dataMappingTooltipButtons: [] as IN8nButton[],
|
||||||
mappingTooltipEnabled: false,
|
mappingTooltipEnabled: false,
|
||||||
|
localStorageMappingFlag: window.localStorage.getItem(LOCAL_STORAGE_MAPPING_FLAG) === 'true',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -176,7 +177,7 @@ export default mixins(showMessage).extend({
|
||||||
this.focused &&
|
this.focused &&
|
||||||
this.isInputTypeString &&
|
this.isInputTypeString &&
|
||||||
!this.isInputDataEmpty &&
|
!this.isInputDataEmpty &&
|
||||||
window.localStorage.getItem(LOCAL_STORAGE_MAPPING_FLAG) !== 'true'
|
!this.localStorageMappingFlag
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -298,6 +299,7 @@ export default mixins(showMessage).extend({
|
||||||
},
|
},
|
||||||
onMappingTooltipDismissed() {
|
onMappingTooltipDismissed() {
|
||||||
window.localStorage.setItem(LOCAL_STORAGE_MAPPING_FLAG, 'true');
|
window.localStorage.setItem(LOCAL_STORAGE_MAPPING_FLAG, 'true');
|
||||||
|
this.localStorageMappingFlag = true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Reference in a new issue