Adds redirection to creator creation

This commit is contained in:
2024-09-04 14:02:37 -04:00
parent c2df527d4c
commit bad374a158
2 changed files with 7 additions and 2 deletions

View File

@@ -134,7 +134,7 @@
</v-list-item> </v-list-item>
<v-list-item v-if="!userStore.hasCreator" class="nav-button"> <v-list-item v-if="!userStore.hasCreator" class="nav-button">
<router-link to="/profile"> <router-link to="/profile?target=CreatorPage">
<v-btn class="w-100" variant="plain">Activer votre page</v-btn> <v-btn class="w-100" variant="plain">Activer votre page</v-btn>
</router-link> </router-link>
</v-list-item> </v-list-item>

View File

@@ -78,8 +78,13 @@ import ManageAccount from "@/views/profile/management/ManageAccount.vue";
import CreatorPage from "@/views/profile/creators/CreatorPage.vue"; import CreatorPage from "@/views/profile/creators/CreatorPage.vue";
import AccountPage from "@/views/profile/account/AccountPage.vue"; import AccountPage from "@/views/profile/account/AccountPage.vue";
import AccountSecurity from "@/views/profile/security/AccountSecurity.vue"; import AccountSecurity from "@/views/profile/security/AccountSecurity.vue";
import {useRoute} from "vue-router";
const currentComponent = ref('AccountPage'); // Default component
const route = useRoute()
const startingComponent = route.query.target || 'AccountPage'
const currentComponent = ref(startingComponent);
const isDown = ref(false); const isDown = ref(false);
const startX = ref(0); const startX = ref(0);
const scrollLeft = ref(0); const scrollLeft = ref(0);