Add open event (#2261)

This commit is contained in:
Mutasem Aldmour 2021-10-05 20:28:37 +02:00 committed by GitHub
parent a077c8e416
commit a4374e235e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,6 +202,12 @@ export default mixins(showMessage, nodeHelpers).extend({
} }
} }
this.$externalHooks().run('credentialsEdit.credentialModalOpened', {
credentialType: this.credentialTypeName,
isEditingCredential: this.mode === 'edit',
activeNode: this.$store.getters.activeNode,
});
if (this.credentialId) { if (this.credentialId) {
if (!this.requiredPropertiesFilled) { if (!this.requiredPropertiesFilled) {
this.showValidationWarning = true; this.showValidationWarning = true;