I mixed both types of posts in the same editor.

This commit is contained in:
PascalMarchesseault
2024-10-23 13:31:18 -04:00
parent 9396f91d18
commit efb138bfcd
4 changed files with 388 additions and 181 deletions

View File

@@ -18,7 +18,7 @@ const creatorProfileStore = useCreatorProfileStore();
const brandingStore = useBrandingStore();
const authStore = useAuthStore();
const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId === brandingStore.value.id);
const creatorIsCurrentUser = computed(() => authStore.isAuthenticated && authStore.userId);
const createHtmlContent = () => {
router.push('/content/editor');
@@ -57,8 +57,8 @@ initializeLocale();
</router-link>
</div>
<div v-if="creatorIsCurrentUser" class="justify-center text-center">
<publish-content-button></publish-content-button>
<div v-if="creatorIsCurrentUser" class="justify-center text-center">
<v-btn variant="flat" icon @click="createHtmlContent">
<v-icon>mdi-pencil</v-icon>
</v-btn>