mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка админки полностью
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
const STATUS_LABELS: Record<string, string> = {
|
||||
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: 'Закрыта'
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
return statuses[status] || status;
|
||||
};
|
Reference in New Issue
Block a user