From 0303b2e60d5fb8fdd433253c2815d53532fbab22 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 23 Dec 2023 20:14:30 +0700 Subject: [PATCH] reply message --- src/api/api.message.ts | 2 + src/components/PopupReplyInbox.vue | 111 +++++++++++++++++++ src/modules/01_dashboard/views/Dashboard.vue | 39 ++++++- 3 files changed, 149 insertions(+), 3 deletions(-) create mode 100644 src/components/PopupReplyInbox.vue diff --git a/src/api/api.message.ts b/src/api/api.message.ts index 34e20b2..be5d2c6 100644 --- a/src/api/api.message.ts +++ b/src/api/api.message.ts @@ -1,8 +1,10 @@ import env from "./index"; const message = `${env.API_URI}/message`; +const reply = `${env.API_URI}/placement/noti`; export default { msgNotificate: `${message}/my-notifications`, msgInbox: `${message}/my-inboxes`, + replyMessage: (id: string) => `${reply}/${id}`, }; diff --git a/src/components/PopupReplyInbox.vue b/src/components/PopupReplyInbox.vue new file mode 100644 index 0000000..1eed8b2 --- /dev/null +++ b/src/components/PopupReplyInbox.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/modules/01_dashboard/views/Dashboard.vue b/src/modules/01_dashboard/views/Dashboard.vue index 8a14f3f..bd88c11 100644 --- a/src/modules/01_dashboard/views/Dashboard.vue +++ b/src/modules/01_dashboard/views/Dashboard.vue @@ -6,6 +6,7 @@ import router from "@/router"; import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; +import PopupReplyInbox from "@/components/PopupReplyInbox.vue"; const $q = useQuasar(); const mixin = useCounterMixin(); @@ -117,7 +118,18 @@ const fetchlistInbox = async () => { const transferToPage = (path?: string) => { router.push(`${path}`); }; + +// Dialog Reply +const modalReply = ref(false); +function dialogRepleOpen() { + modalReply.value = true; +} + +function modalReplyClose() { + modalReply.value = false; +} +