From 9396f91d1825b1f87c51bf55b9725d342c670a17 Mon Sep 17 00:00:00 2001 From: PascalMarchesseault <97350299+PascalMarchesseault@users.noreply.github.com> Date: Wed, 23 Oct 2024 00:13:51 -0400 Subject: [PATCH] =?UTF-8?q?const=20creatorIsCurrentUser=20=3D=20computed((?= =?UTF-8?q?)=20=3D>=20authStore.isAuthenticated=20&&=20authStore.userId=20?= =?UTF-8?q?=3D=3D=3D=20brandingStore.value.id);=20Je=20veux=20que=20ce=20b?= =?UTF-8?q?outon=20soit=20accessible=20en=20tout=20temps.=20(v=C3=A9rifier?= =?UTF-8?q?=20le=20cr=C3=A9ateur=20a=20une=20page=20d'activer=20et=20si=20?= =?UTF-8?q?il=20est=20connect=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/SideBar.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/main/SideBar.vue b/src/views/main/SideBar.vue index 2d0b05a..e0fa0cf 100644 --- a/src/views/main/SideBar.vue +++ b/src/views/main/SideBar.vue @@ -18,7 +18,6 @@ const creatorProfileStore = useCreatorProfileStore(); const brandingStore = useBrandingStore(); const authStore = useAuthStore(); -// Définir creatorIsCurrentUser avec la logique provenant du premier script const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === brandingStore.value.id); const createHtmlContent = () => {