แก้ไข dialog การตอบกลับข้อความ

This commit is contained in:
Warunee Tamkoo 2023-12-27 15:31:41 +07:00
parent 1435b9b004
commit 4841a384a7

View file

@ -121,11 +121,14 @@ const transferToPage = (path?: string) => {
// Dialog Reply
const modalReply = ref<boolean>(false);
function dialogRepleOpen() {
const contactNo = ref<string>();
function dialogRepleOpen(id: string) {
contactNo.value = id;
modalReply.value = true;
}
function modalReplyClose() {
contactNo.value = "";
modalReply.value = false;
}
</script>
@ -232,16 +235,10 @@ function modalReplyClose() {
icon="mdi-reply"
size="10px"
color="grey-7"
@click="dialogRepleOpen()"
@click="dialogRepleOpen(contact.no)"
>
<q-tooltip>ตอบกลบขอความ</q-tooltip>
</q-btn>
<PopupReplyInbox
:modal="modalReply"
:idInbox="contact.no"
:click-close="modalReplyClose"
/>
</q-item-section>
</q-item>
</q-list>
@ -260,6 +257,11 @@ function modalReplyClose() {
</q-card>
</div>
</div>
<PopupReplyInbox
:modal="modalReply"
:idInbox="contactNo"
:click-close="modalReplyClose"
/>
</template>
<style>
.my-menu-link {