feat: Fetch user cloud role and pass it on in website links (#8942)

This commit is contained in:
Milorad FIlipović
2024-03-22 11:33:39 +01:00
committed by GitHub
parent 69363e461b
commit 666867a236
8 changed files with 88 additions and 15 deletions

View File

@@ -387,7 +387,10 @@ export default defineComponent({
});
},
trackTemplatesClick() {
this.$telemetry.track('User clicked on templates', {});
this.$telemetry.track('User clicked on templates', {
role: this.usersStore.currentUserCloudInfo?.role,
active_workflow_count: this.workflowsStore.activeWorkflows.length,
});
},
async onUserActionToggle(action: string) {
switch (action) {