From 54eaf79b5f87ab1baf5379b459792e9f443d52e7 Mon Sep 17 00:00:00 2001 From: prerna-parashar <78053555+prerna-parashar@users.noreply.github.com> Date: Tue, 6 Sep 2022 09:55:33 -0700 Subject: [PATCH] satellite/analytics: Re-added user click events in Access Management flow (#5151) * Re-added user click events in Access Management flow --- satellite/analytics/service.go | 2 +- .../accessGrants/CreateAccessModal.vue | 9 +++----- .../accessGrants/modals/CreateFormModal.vue | 21 +++++++++++++++---- .../accessGrants/modals/EncryptFormModal.vue | 7 +++++++ .../accessGrants/modals/GrantCreatedModal.vue | 15 +++++++++++++ 5 files changed, 43 insertions(+), 11 deletions(-) diff --git a/satellite/analytics/service.go b/satellite/analytics/service.go index b2449fc5f..726adf502 100644 --- a/satellite/analytics/service.go +++ b/satellite/analytics/service.go @@ -59,7 +59,7 @@ const ( eventCopyToClipboardClicked = "Copy to Clipboard Clicked" eventCreateAccessGrantClicked = "Create Access Grant Clicked" eventCreateS3CredentialsClicked = "Create S3 Credentials Clicked" - eventKeysForCLIClicked = "Keys for CLI Clicked" + eventKeysForCLIClicked = "Create Keys For CLI Clicked" ) var ( diff --git a/web/satellite/src/components/accessGrants/CreateAccessModal.vue b/web/satellite/src/components/accessGrants/CreateAccessModal.vue index 482fcbdab..dab740fa4 100644 --- a/web/satellite/src/components/accessGrants/CreateAccessModal.vue +++ b/web/satellite/src/components/accessGrants/CreateAccessModal.vue @@ -242,21 +242,18 @@ export default class CreateAccessModal extends Vue { try { await this.$store.dispatch(ACCESS_GRANTS_ACTIONS.GET_GATEWAY_CREDENTIALS, {accessGrant: this.access}); - await this.$notify.success('Gateway credentials were generated successfully'); - await this.analytics.eventTriggered(AnalyticsEvent.GATEWAY_CREDENTIALS_CREATED); + await this.$notify.success('Gateway credentials were generated successfully'); + this.areKeysVisible = true; } catch (error) { await this.$notify.error(error.message); } } else if (this.checkedType === 'api') { await this.analytics.eventTriggered(AnalyticsEvent.API_ACCESS_CREATED); - } else if (this.checkedType === 'access') { - await this.analytics.eventTriggered(AnalyticsEvent.ACCESS_GRANT_CREATED); } - - this.analytics.eventTriggered(AnalyticsEvent.CREATE_KEYS_CLICKED); + this.analytics.eventTriggered(AnalyticsEvent.ACCESS_GRANT_CREATED); this.accessGrantStep = 'grantCreated'; } diff --git a/web/satellite/src/components/accessGrants/modals/CreateFormModal.vue b/web/satellite/src/components/accessGrants/modals/CreateFormModal.vue index 11a5cacb6..af9bb978d 100644 --- a/web/satellite/src/components/accessGrants/modals/CreateFormModal.vue +++ b/web/satellite/src/components/accessGrants/modals/CreateFormModal.vue @@ -40,7 +40,7 @@ @mouseover="toggleTooltipHover('access','over')" @mouseleave="toggleTooltipHover('access','leave')" > - Keys to upload, delete, and view your project's data. Learn More + Keys to upload, delete, and view your project's data. Learn More