mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка adm6
This commit is contained in:
22
frontend/src/utils/labels.ts
Normal file
22
frontend/src/utils/labels.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
const STATUS_LABELS: Record<string, string> = {
|
||||
new: 'Новая',
|
||||
in_progress: 'В работе',
|
||||
resolved: 'Решена',
|
||||
closed: 'Закрыта'
|
||||
};
|
||||
|
||||
const REQUEST_TYPE_LABELS: Record<string, string> = {
|
||||
hardware: 'Проблемы с оборудованием',
|
||||
software: 'Проблемы с ПО',
|
||||
network: 'Проблемы с сетью',
|
||||
access: 'Доступ к системам',
|
||||
other: 'Другое'
|
||||
};
|
||||
|
||||
export const getStatusLabel = (status: string): string => {
|
||||
return STATUS_LABELS[status] || status;
|
||||
};
|
||||
|
||||
export const getRequestTypeLabel = (type: string): string => {
|
||||
return REQUEST_TYPE_LABELS[type] || type;
|
||||
};
|
Reference in New Issue
Block a user