mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
20 lines
595 B
TypeScript
20 lines
595 B
TypeScript
export const getRequestTypeLabel = (type: string): string => {
|
||
const types: Record<string, string> = {
|
||
hardware: 'Оборудование',
|
||
software: 'Программное обеспечение',
|
||
network: 'Сеть',
|
||
access: 'Доступ',
|
||
other: 'Другое'
|
||
};
|
||
return types[type] || type;
|
||
};
|
||
|
||
export const getStatusLabel = (status: string): string => {
|
||
const statuses: Record<string, string> = {
|
||
new: 'Новая',
|
||
in_progress: 'В работе',
|
||
resolved: 'Решена',
|
||
closed: 'Закрыта'
|
||
};
|
||
return statuses[status] || status;
|
||
}; |