fix: logout btn color
This commit is contained in:
parent
e75228ef58
commit
32449e7c4c
4 changed files with 12 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ const loaderStore = useLoader();
|
|||
const optionStore = useOptionStore();
|
||||
|
||||
const { visible } = storeToRefs(loaderStore);
|
||||
const { locale } = useI18n({ useScope: 'global' });
|
||||
const { t, locale } = useI18n({ useScope: 'global' });
|
||||
const userStore = useUserStore();
|
||||
|
||||
const rawOption = ref();
|
||||
|
|
@ -115,12 +115,14 @@ function setActive(button: NotificationButton) {
|
|||
function doLogout() {
|
||||
dialog({
|
||||
icon: 'mdi-logout-variant',
|
||||
title: 'ยืนยันการออกจากระบบ',
|
||||
title: t('confirmLogoutTitle'),
|
||||
persistent: true,
|
||||
message: 'คุณต้องการออกจากระบบ ใช่หรือไม่',
|
||||
color: 'negative',
|
||||
message: t('confirmLogoutMessage'),
|
||||
action: async () => {
|
||||
logout();
|
||||
},
|
||||
cancel: () => {},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue