mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(editor): restrict mapping discoverability tooltip showing only on string input (#4496)
* refactor(editor): restrict mapping discoverability tooltip showing only on string input * refactor(editor): renaming computed prop because not only string inputs can be mapped, but we want to show tooltips only on string inputs * fix(editor): removing unused prop from ParameterInputWrapper.vue * fix(editor): reorganizing and updating props in ParameterInputFull.vue * fix(editor): proper typings for node related translations * fix(editor): fix typings for input localisation functions * fix(editor): simplifying localisation functions * Revert "fix(editor): simplifying localisation functions" This reverts commit 3d93ccf0cf4f62b07c49871825f4a518766ca470. * fix(editor): move nullish coalescing into called function
This commit is contained in:
@@ -762,12 +762,12 @@ export default mixins(
|
||||
? this.$locale.credText().placeholder(this.parameter)
|
||||
: this.$locale.nodeText().placeholder(this.parameter, this.path);
|
||||
},
|
||||
getOptionsOptionDisplayName(option: { value: string; name: string }): string {
|
||||
getOptionsOptionDisplayName(option: INodePropertyOptions): string {
|
||||
return this.isForCredential
|
||||
? this.$locale.credText().optionsOptionDisplayName(this.parameter, option)
|
||||
: this.$locale.nodeText().optionsOptionDisplayName(this.parameter, option, this.path);
|
||||
},
|
||||
getOptionsOptionDescription(option: { value: string; description: string }): string {
|
||||
getOptionsOptionDescription(option: INodePropertyOptions): string {
|
||||
return this.isForCredential
|
||||
? this.$locale.credText().optionsOptionDescription(this.parameter, option)
|
||||
: this.$locale.nodeText().optionsOptionDescription(this.parameter, option, this.path);
|
||||
|
||||
Reference in New Issue
Block a user