@@ -96,6 +104,12 @@ const props = defineProps({
creator: {type: Object, required: true},
});
+const emits = defineEmits(['content-posted'])
+
+function addContent(content) {
+ emits('content-posted', content)
+}
+
function GetSocialsUrls() {
const socials = [];
diff --git a/src/views/creators/CreatorPage.vue b/src/views/creators/CreatorPage.vue
index eb082ac..a6e1d0a 100644
--- a/src/views/creators/CreatorPage.vue
+++ b/src/views/creators/CreatorPage.vue
@@ -1,12 +1,15 @@
@@ -34,11 +37,16 @@ import {useClient} from "@/plugins/api.js";
import CreatorBanner from "@/views/creators/CreatorBanner.vue";
import ContentList from "@/views/contents/ContentList.vue";
-const client = useClient();
-const route = useRoute();
+const creator = ref(null)
+const loading = ref(true)
+const contents = ref([])
-const creator = ref(null);
-const loading = ref(true);
+const client = useClient()
+const route = useRoute()
+
+function contentPosted(content) {
+ contents.value.unshift(content)
+}
onBeforeMount(async () => await fetchCreatorData(route.params.creator))
diff --git a/src/views/messages/MessageList.vue b/src/views/messages/MessageList.vue
index 5ac8bc5..556e51f 100644
--- a/src/views/messages/MessageList.vue
+++ b/src/views/messages/MessageList.vue
@@ -1,12 +1,14 @@
-
-
+
+
@@ -26,8 +28,8 @@