fix(editor): Cleanup demo/video experiment (#5974)

This commit is contained in:
Ricardo Espinoza
2023-04-18 07:28:12 -04:00
committed by GitHub
parent 1bb987140a
commit c171365d2a
5 changed files with 6 additions and 66 deletions

View File

@@ -101,9 +101,6 @@ export default mixins(showMessage, restApi).extend({
},
computed: {
...mapStores(useCredentialsStore, useSettingsStore, useUIStore, useUsersStore),
isDemoTest(): boolean {
return usePostHog().isVariantEnabled(ASSUMPTION_EXPERIMENT.name, ASSUMPTION_EXPERIMENT.demo);
},
},
methods: {
async confirmSetupOrGoBack(): Promise<boolean> {
@@ -163,7 +160,7 @@ export default mixins(showMessage, restApi).extend({
}
if (forceRedirectedHere) {
await this.$router.push({ name: this.isDemoTest ? VIEWS.HOMEPAGE : VIEWS.NEW_WORKFLOW });
await this.$router.push({ name: VIEWS.NEW_WORKFLOW });
} else {
await this.$router.push({ name: VIEWS.USERS_SETTINGS });
}
@@ -187,7 +184,7 @@ export default mixins(showMessage, restApi).extend({
onSkip() {
this.usersStore.skipOwnerSetup();
this.$router.push({
name: this.isDemoTest ? VIEWS.HOMEPAGE : VIEWS.NEW_WORKFLOW,
name: VIEWS.NEW_WORKFLOW,
});
},
},