Reload header profile picture on change. Show PostContentMenu only if it is the creator own page

This commit is contained in:
Dominic Villemure
2024-07-05 02:19:42 -04:00
parent d6ab03ad18
commit 45bdac0de1
3 changed files with 47 additions and 13 deletions

View File

@@ -13,7 +13,7 @@
<!-- <MessageList content-id="00000001-0000-0000-0000-000000000001"></MessageList>-->
<!-- </div>-->
<PostContentMenu></PostContentMenu>
<PostContentMenu v-if="user.id === userStore.getCurrentUser().id"></PostContentMenu>
<StripePayment :creator-id="user.id"></StripePayment>
@@ -57,9 +57,11 @@ import {useClient} from "@/plugins/api.js";
import {useRoute} from "vue-router";
import CreatorBanner from "@/views/main/CreatorBanner.vue";
import StripePayment from "@/views/StripePayment.vue";
import {useUserStore} from "@/stores/user.js";
const client = useClient();
const route = useRoute();
const userStore = useUserStore();
const user = ref(null);
const loading = ref(true);