ปรับรายการลาออก และ dialog confrim
This commit is contained in:
parent
c1db58e570
commit
19da1d284a
5 changed files with 558 additions and 519 deletions
|
|
@ -20,6 +20,7 @@ const {
|
|||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
dialogConfirm,
|
||||
} = mixin;
|
||||
|
||||
const fullname = ref<string>("");
|
||||
|
|
@ -88,15 +89,14 @@ const fetchlistNotification = async (index: number, type: string) => {
|
|||
* confirm ก่อนออกจากระบบ
|
||||
*/
|
||||
const doLogout = () => {
|
||||
$q.dialog({
|
||||
title: "ยืนยันการออกจากระบบ",
|
||||
message: `ต้องการออกจากระบบใช่หรือไม่?`,
|
||||
cancel: "ยกเลิก",
|
||||
ok: "ยืนยัน",
|
||||
persistent: true,
|
||||
}).onOk(() => {
|
||||
keycloak.logout();
|
||||
});
|
||||
dialogConfirm(
|
||||
$q,
|
||||
() => {
|
||||
keycloak.logout();
|
||||
},
|
||||
"ยืนยันการออกจากระบบ",
|
||||
"ต้องการออกจากระบบใช่หรือไม่"
|
||||
);
|
||||
};
|
||||
|
||||
const clickDelete = async (id: string, index: number) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue