const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === brandingStore.value.id); Je veux que ce bouton soit accessible en tout temps. (vérifier le créateur a une page d'activer et si il est connecté)
This commit is contained in:
@@ -18,7 +18,6 @@ const creatorProfileStore = useCreatorProfileStore();
|
|||||||
const brandingStore = useBrandingStore();
|
const brandingStore = useBrandingStore();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
|
|
||||||
// Définir creatorIsCurrentUser avec la logique provenant du premier script
|
|
||||||
const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === brandingStore.value.id);
|
const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === brandingStore.value.id);
|
||||||
|
|
||||||
const createHtmlContent = () => {
|
const createHtmlContent = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user