Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m21s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m21s
This commit is contained in:
commit
fda9ff78fa
1 changed files with 31 additions and 0 deletions
|
|
@ -261,6 +261,26 @@ function onResetPass() {
|
||||||
modalResetPass.value = true;
|
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 */
|
/** ดูการเปลี่ยน route name เพื่อเปลี่ยน tab */
|
||||||
watch(
|
watch(
|
||||||
() => route.name,
|
() => route.name,
|
||||||
|
|
@ -369,6 +389,17 @@ watch(
|
||||||
<div class="text-grey-5" style="font-size: 12px">
|
<div class="text-grey-5" style="font-size: 12px">
|
||||||
ทั้งหมด {{ totalInbox }} ข้อความ
|
ทั้งหมด {{ totalInbox }} ข้อความ
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<q-infinite-scroll
|
<q-infinite-scroll
|
||||||
@load="onLoad"
|
@load="onLoad"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue