mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Add user opened cred modal telemetry event (no-changelog) (#7927)
## Summary Add `User opened Credential modal` telemetry event to the template credential setup page, as specified [here](https://www.notion.so/n8n/Handoff-a1150c38f6e042db91fdf61c56900967?pvs=4)
This commit is contained in:
@@ -24,6 +24,7 @@ const props = defineProps({
|
||||
const $emit = defineEmits({
|
||||
credentialSelected: (_credentialId: string) => true,
|
||||
credentialDeselected: () => true,
|
||||
credentialModalOpened: () => true,
|
||||
});
|
||||
|
||||
const uiStore = useUIStore();
|
||||
@@ -47,10 +48,12 @@ const onCredentialSelected = (credentialId: string) => {
|
||||
};
|
||||
const createNewCredential = () => {
|
||||
uiStore.openNewCredential(props.credentialType, true);
|
||||
$emit('credentialModalOpened');
|
||||
};
|
||||
const editCredential = () => {
|
||||
assert(props.selectedCredentialId);
|
||||
uiStore.openExistingCredential(props.selectedCredentialId);
|
||||
$emit('credentialModalOpened');
|
||||
};
|
||||
|
||||
listenForCredentialChanges({
|
||||
|
||||
Reference in New Issue
Block a user