diff --git a/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue b/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue
index f494c1c663..2a7a2e8324 100644
--- a/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue
+++ b/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue
@@ -97,11 +97,8 @@
@@ -642,10 +639,6 @@ export default defineComponent({
}
this.credentialName = currentCredentials.name;
- currentCredentials.nodesAccess.forEach((access: { nodeType: string }) => {
- // keep node access structure to keep dates when updating
- this.nodeAccess[access.nodeType] = access;
- });
} catch (error) {
this.showError(
error,
@@ -671,23 +664,6 @@ export default defineComponent({
sharing_enabled: EnterpriseEditionFeature.Sharing,
});
},
- onNodeAccessChange({ name, value }: { name: string; value: boolean }) {
- this.hasUnsavedChanges = true;
-
- if (value) {
- this.nodeAccess = {
- ...this.nodeAccess,
- [name]: {
- nodeType: name,
- },
- };
- } else {
- this.nodeAccess = {
- ...this.nodeAccess,
- [name]: null,
- };
- }
- },
onChangeSharedWith(sharees: IDataObject[]) {
this.credentialData = {
...this.credentialData,
@@ -762,17 +738,13 @@ export default defineComponent({
return;
}
- const nodesAccess = Object.values(this.nodeAccess).filter(
- (access) => !!access,
- ) as ICredentialNodeAccess[];
-
const { ownedBy, sharedWith, ...credentialData } = this.credentialData;
const details: ICredentialsDecrypted = {
id: this.credentialId,
name: this.credentialName,
type: this.credentialTypeName!,
data: credentialData,
- nodesAccess,
+ nodesAccess: [],
};
this.isRetesting = true;
@@ -802,9 +774,6 @@ export default defineComponent({
}
this.isSaving = true;
- const nodesAccess = Object.values(this.nodeAccess).filter(
- (access) => !!access,
- ) as ICredentialNodeAccess[];
// Save only the none default data
const data = NodeHelpers.getNodeParameters(
@@ -827,7 +796,7 @@ export default defineComponent({
name: this.credentialName,
type: this.credentialTypeName!,
data: data as unknown as ICredentialDataDecryptedObject,
- nodesAccess,
+ nodesAccess: [],
sharedWith,
ownedBy,
};
@@ -1114,18 +1083,7 @@ export default defineComponent({
}
},
setupNodeAccess(): void {
- this.nodeAccess = this.nodesWithAccess.reduce(
- (accu: NodeAccessMap, node: { name: string }) => {
- if (this.mode === 'new') {
- accu[node.name] = { nodeType: node.name }; // enable all nodes by default
- } else {
- accu[node.name] = null;
- }
-
- return accu;
- },
- {},
- );
+ this.nodeAccess = {};
},
resetCredentialData(): void {
if (!this.credentialType) {
diff --git a/packages/editor-ui/src/components/CredentialEdit/CredentialInfo.vue b/packages/editor-ui/src/components/CredentialEdit/CredentialInfo.vue
index da3c2f971d..9574c2c0e0 100644
--- a/packages/editor-ui/src/components/CredentialEdit/CredentialInfo.vue
+++ b/packages/editor-ui/src/components/CredentialEdit/CredentialInfo.vue
@@ -1,35 +1,5 @@
-
-
-
- {{ $locale.baseText('credentialEdit.credentialInfo.allowUseBy') }}
-
-
-
-
- onNodeAccessChange(node.name, val)"
- />
-
- {{
- $locale.headerText({
- key: `headers.${shortNodeType(node)}.displayName`,
- fallback: node.displayName,
- })
- }}
-
-
-
-
@@ -78,14 +48,8 @@ export default defineComponent({
components: {
TimeAgo,
},
- props: ['nodesWithAccess', 'nodeAccess', 'currentCredential', 'credentialPermissions'],
+ props: ['currentCredential', 'credentialPermissions'],
methods: {
- onNodeAccessChange(name: string, value: string) {
- this.$emit('accessChange', {
- name,
- value,
- });
- },
shortNodeType(nodeType: INodeTypeDescription) {
return this.$locale.shortNodeType(nodeType.name);
},