refactor: Add telemetry to upgrade paths (no-changelog) (#6313)

This commit is contained in:
Iván Ovejero
2023-05-30 15:49:27 +02:00
committed by GitHub
parent 54e3838dae
commit f91d36cd30
7 changed files with 50 additions and 10 deletions

View File

@@ -66,8 +66,8 @@
import { i18n as locale } from '@/plugins/i18n';
import { DateTime } from 'luxon';
import type { CloudPlanAndUsageData } from '@/Interface';
import { CLOUD_CHANGE_PLAN_PAGE } from '@/constants';
import { computed } from 'vue';
import { useUIStore } from '@/stores';
const PROGRESS_BAR_MINIMUM_THRESHOLD = 8;
@@ -114,7 +114,7 @@ const maxExecutions = computed(() => {
});
const onUpgradeClicked = () => {
location.href = CLOUD_CHANGE_PLAN_PAGE;
useUIStore().goToUpgrade('canvas-nav', 'upgrade-canvas-nav', 'redirect');
};
</script>