mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Add empty credential value marker to show empty pw field (#6532)
add empty credential value marker to show empty pw field
This commit is contained in:
committed by
GitHub
parent
d9ed0b31b5
commit
9294e2da3c
@@ -367,7 +367,7 @@ import type {
|
||||
EditorType,
|
||||
CodeNodeEditorLanguage,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeHelpers } from 'n8n-workflow';
|
||||
import { NodeHelpers, CREDENTIAL_EMPTY_VALUE } from 'n8n-workflow';
|
||||
|
||||
import CredentialsSelect from '@/components/CredentialsSelect.vue';
|
||||
import ExpressionEdit from '@/components/ExpressionEdit.vue';
|
||||
@@ -607,6 +607,11 @@ export default defineComponent({
|
||||
return this.$locale.baseText('parameterInput.loadingOptions');
|
||||
}
|
||||
|
||||
// if the value is marked as empty return empty string, to prevent displaying the asterisks
|
||||
if (this.value === CREDENTIAL_EMPTY_VALUE) {
|
||||
return '';
|
||||
}
|
||||
|
||||
let returnValue;
|
||||
if (this.isValueExpression === false) {
|
||||
returnValue = this.isResourceLocatorParameter
|
||||
|
||||
Reference in New Issue
Block a user