1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Починка adm6

This commit is contained in:
MoonTestUse1
2025-01-01 21:13:15 +06:00
parent 57b401e764
commit 1194c2c1bd
6 changed files with 100 additions and 55 deletions

View 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;
};