Compare commits
No commits in common. "fda9ff78fa5abe2d0a02eb4b48568f6785fb7923" and "89801e787f81766764b7592b791e179db2ad659a" have entirely different histories.
fda9ff78fa
...
89801e787f
1 changed files with 0 additions and 31 deletions
|
|
@ -261,26 +261,6 @@ function onResetPass() {
|
|||
modalResetPass.value = true;
|
||||
}
|
||||
|
||||
function handleDeleteNotification() {
|
||||
dialogRemove(
|
||||
$q,
|
||||
async () => {
|
||||
try {
|
||||
showLoader();
|
||||
await http.delete(config.API.msgNotificate);
|
||||
await fetchlistNotification(1, "DEL");
|
||||
success($q, "ลบข้อมูลสำเร็จ");
|
||||
} catch (error) {
|
||||
messageError($q, error);
|
||||
} finally {
|
||||
hideLoader();
|
||||
}
|
||||
},
|
||||
"ยืนยันการลบข้อมูล",
|
||||
"ต้องการยืนยันการลบรายการแจ้งเตือนทั้งหมดใช่หรือไม่?",
|
||||
);
|
||||
}
|
||||
|
||||
/** ดูการเปลี่ยน route name เพื่อเปลี่ยน tab */
|
||||
watch(
|
||||
() => route.name,
|
||||
|
|
@ -389,17 +369,6 @@ watch(
|
|||
<div class="text-grey-5" style="font-size: 12px">
|
||||
ทั้งหมด {{ totalInbox }} ข้อความ
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="totalInbox !== 0"
|
||||
flat
|
||||
dense
|
||||
round
|
||||
color="red"
|
||||
icon="delete"
|
||||
@click.stop.prevent="handleDeleteNotification"
|
||||
>
|
||||
<q-tooltip>ลบการแจ้งเตือนทั้งหมด</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
<q-infinite-scroll
|
||||
@load="onLoad"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue