fix: logout btn color

This commit is contained in:
puriphatt 2024-06-28 02:27:01 +00:00
parent e75228ef58
commit 32449e7c4c
4 changed files with 12 additions and 4 deletions

View file

@ -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: () => {},
});
}