แก้ไข dialog การตอบกลับข้อความ
This commit is contained in:
parent
1435b9b004
commit
4841a384a7
1 changed files with 10 additions and 8 deletions
|
|
@ -121,11 +121,14 @@ const transferToPage = (path?: string) => {
|
||||||
|
|
||||||
// Dialog Reply
|
// Dialog Reply
|
||||||
const modalReply = ref<boolean>(false);
|
const modalReply = ref<boolean>(false);
|
||||||
function dialogRepleOpen() {
|
const contactNo = ref<string>();
|
||||||
|
function dialogRepleOpen(id: string) {
|
||||||
|
contactNo.value = id;
|
||||||
modalReply.value = true;
|
modalReply.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function modalReplyClose() {
|
function modalReplyClose() {
|
||||||
|
contactNo.value = "";
|
||||||
modalReply.value = false;
|
modalReply.value = false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -232,16 +235,10 @@ function modalReplyClose() {
|
||||||
icon="mdi-reply"
|
icon="mdi-reply"
|
||||||
size="10px"
|
size="10px"
|
||||||
color="grey-7"
|
color="grey-7"
|
||||||
@click="dialogRepleOpen()"
|
@click="dialogRepleOpen(contact.no)"
|
||||||
>
|
>
|
||||||
<q-tooltip>ตอบกลับข้อความ</q-tooltip>
|
<q-tooltip>ตอบกลับข้อความ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
<PopupReplyInbox
|
|
||||||
:modal="modalReply"
|
|
||||||
:idInbox="contact.no"
|
|
||||||
:click-close="modalReplyClose"
|
|
||||||
/>
|
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
|
|
@ -260,6 +257,11 @@ function modalReplyClose() {
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<PopupReplyInbox
|
||||||
|
:modal="modalReply"
|
||||||
|
:idInbox="contactNo"
|
||||||
|
:click-close="modalReplyClose"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style>
|
||||||
.my-menu-link {
|
.my-menu-link {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue