Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m21s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-06-23 14:12:02 +07:00
commit fda9ff78fa

View file

@ -261,6 +261,26 @@ 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,
@ -369,6 +389,17 @@ 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"