-
-
-
+
+
+
@@ -21,6 +25,13 @@ import ChatMsg from "@/components/ChatMsg.vue";
import demo_chats_json from "../assets/demo_chats.json";
export default {
demo_chats: demo_chats_json,
+ selectedChat: false,
+ methods: {
+ showChat(chat) {
+ this.$emit("change-header", [chat.picture, chat.name]);
+ this.selectedChat = true;
+ },
+ },
};
diff --git a/geografia-vue/src/components/ChatPreview.vue b/geografia-vue/src/components/ChatPreview.vue
index b94758b..c7b4347 100644
--- a/geografia-vue/src/components/ChatPreview.vue
+++ b/geografia-vue/src/components/ChatPreview.vue
@@ -1,7 +1,9 @@
-
+
-
+