fix: icon

This commit is contained in:
puriphatt 2024-08-09 06:18:26 +00:00
parent e38c76e7d3
commit d5698e9454
4 changed files with 10 additions and 8 deletions

View file

@ -558,7 +558,8 @@ async function triggerChangeStatus(id: string, status: string) {
return await new Promise((resolve, reject) => { return await new Promise((resolve, reject) => {
dialog({ dialog({
color: status !== 'INACTIVE' ? 'warning' : 'info', color: status !== 'INACTIVE' ? 'warning' : 'info',
icon: status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-comment-alert', icon:
status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-message-processing-outline',
title: t('confirmChangeStatusTitle'), title: t('confirmChangeStatusTitle'),
actionText: actionText:
status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'), status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'),

View file

@ -363,7 +363,8 @@ async function triggerChangeStatus(id: string, status: string) {
return await new Promise((resolve, reject) => { return await new Promise((resolve, reject) => {
dialog({ dialog({
color: status !== 'INACTIVE' ? 'warning' : 'info', color: status !== 'INACTIVE' ? 'warning' : 'info',
icon: status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-comment-alert', icon:
status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-message-processing-outline',
title: t('confirmChangeStatusTitle'), title: t('confirmChangeStatusTitle'),
actionText: actionText:
status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'), status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'),
@ -654,8 +655,8 @@ watch(
? customerStats.map((v) => ({ ? customerStats.map((v) => ({
count: count:
v.name === 'CORP' v.name === 'CORP'
? statsCustomerType?.CORP ?? 0 ? (statsCustomerType?.CORP ?? 0)
: statsCustomerType?.PERS ?? 0, : (statsCustomerType?.PERS ?? 0),
label: label:
v.name === 'CORP' v.name === 'CORP'
? 'customerLegalEntity' ? 'customerLegalEntity'
@ -1667,7 +1668,7 @@ watch(
{ {
icon: 'mdi-clock-outline', icon: 'mdi-clock-outline',
value: props.row.dateOfBirth value: props.row.dateOfBirth
? calculateAge(props.row.dateOfBirth) ?? '' ? (calculateAge(props.row.dateOfBirth) ?? '')
: '', : '',
}, },
], ],

View file

@ -715,7 +715,8 @@ async function triggerChangeStatus(
return await new Promise((resolve, reject) => { return await new Promise((resolve, reject) => {
dialog({ dialog({
color: status !== 'INACTIVE' ? 'warning' : 'info', color: status !== 'INACTIVE' ? 'warning' : 'info',
icon: status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-comment-alert', icon:
status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-message-processing-outline',
title: t('confirmChangeStatusTitle'), title: t('confirmChangeStatusTitle'),
actionText: actionText:
status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'), status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'),

View file

@ -14,11 +14,10 @@ const menu = [
}, },
{ {
value: 'personnel-management', value: 'personnel-management',
icon: 'isax-frame5', icon: 'fa6-solid:building-user',
color: 'cyan', color: 'cyan',
title: 'mainPersonnelTitle', title: 'mainPersonnelTitle',
caption: 'mainPersonnelCaption', caption: 'mainPersonnelCaption',
isax: true,
}, },
{ {
value: 'customer-management', value: 'customer-management',