Adds redirection to creator creation
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user