feat: Hide credentials password values (#4868)

* feat: redact password field values in credentials

* feat: disable expanding password fields

* fix: redacting credentials without a valid type

This only seems to be a thing in testing?
This commit is contained in:
Valya
2022-12-15 13:31:06 +00:00
committed by GitHub
parent 0e4cda5763
commit fe0f982437
5 changed files with 144 additions and 15 deletions

View File

@@ -113,7 +113,7 @@
>
<template #suffix>
<n8n-icon
v-if="!isReadOnly"
v-if="!isReadOnly && !isSecretParameter"
icon="external-link-alt"
size="xsmall"
class="edit-window-button textarea-modal-opener"
@@ -770,6 +770,9 @@ export default mixins(
isResourceLocatorParameter(): boolean {
return this.parameter.type === 'resourceLocator';
},
isSecretParameter(): boolean {
return this.getArgument('password') === true;
},
},
methods: {
isRemoteParameterOption(option: INodePropertyOptions) {