forked from devsam/core
feat: 메시지 응답시, 읽음 처리
This commit is contained in:
@@ -107,6 +107,7 @@
|
||||
:generalName="generalName"
|
||||
:nationID="nationID"
|
||||
:permissionLevel="permissionLevel"
|
||||
@response="()=>{readLatestMsg('private')}"
|
||||
></MessagePlate>
|
||||
<div class="d-grid Actions">
|
||||
<button type="button" class="btn btn-dark only-mobile" @click="foldMessage($event, 'private')">접기</button>
|
||||
@@ -142,6 +143,7 @@
|
||||
:generalName="generalName"
|
||||
:nationID="nationID"
|
||||
:permissionLevel="permissionLevel"
|
||||
@response="()=>{readLatestMsg('diplomacy')}"
|
||||
></MessagePlate>
|
||||
<div class="d-grid Actions">
|
||||
<button type="button" class="btn btn-dark only-mobile" @click="foldMessage($event, 'diplomacy')">접기</button>
|
||||
|
||||
@@ -105,6 +105,7 @@ const props = defineProps<{
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(event: "response"): void;
|
||||
(event: "request-refresh"): void;
|
||||
}>();
|
||||
|
||||
@@ -204,6 +205,7 @@ function testValidMsg(msg: MsgItem): boolean {
|
||||
}
|
||||
|
||||
async function tryDelete() {
|
||||
emit("response");
|
||||
if (!confirm("삭제하시겠습니까?")) {
|
||||
return false;
|
||||
}
|
||||
@@ -222,6 +224,7 @@ async function tryDelete() {
|
||||
}
|
||||
|
||||
async function tryAccept() {
|
||||
emit("response");
|
||||
if (!confirm("수락하시겠습니까?")) {
|
||||
return false;
|
||||
}
|
||||
@@ -240,6 +243,7 @@ async function tryAccept() {
|
||||
}
|
||||
|
||||
async function tryDecline() {
|
||||
emit("response");
|
||||
if (!confirm("거절하시겠습니까?")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user