refactor: add stats canceled

This commit is contained in:
Thanaphon Frappet 2024-12-25 14:48:36 +07:00
parent f394b09dd3
commit 05acfe9116
2 changed files with 7 additions and 6 deletions

View file

@ -151,12 +151,12 @@ watch([() => pageState.inputSearch, () => pageState.statusFilter], () =>
label: 'requestList.status.Completed',
color: 'light-green',
},
// {
// icon: 'mdi-close-circle-outline',
// count: 0,
// label: 'requestList.status.Canceled',
// color: 'red',
// },
{
icon: 'mdi-close-circle-outline',
count: stats[RequestDataStatus.Canceled],
label: 'requestList.status.Canceled',
color: 'red',
},
]"
:dark="$q.dark.isActive"
/>

View file

@ -25,6 +25,7 @@ export const useRequestList = defineStore('request-list', () => {
[RequestDataStatus.Pending]: 0,
[RequestDataStatus.InProgress]: 0,
[RequestDataStatus.Completed]: 0,
[RequestDataStatus.Canceled]: 0,
});
type TypeFile =