дг тарифов выводит переименованный сервис кей

This commit is contained in:
Nastya 2023-07-03 20:05:09 +03:00
parent a81536f1c9
commit d919569f9f
2 changed files with 2 additions and 2 deletions

@ -5,7 +5,7 @@ import { useCombinedPrivileges } from "@root/hooks/useCombinedPrivileges.hook";
import { usePrivilegeStore } from "@root/stores/privilegesStore";
const columns: GridColDef[] = [
{ field: "id", headerName: "id", width: 40 },
{ field: "id", headerName: "id", width: 150 },
{ field: "name", headerName: "Привелегия", width: 150 },
{ field: "description", headerName: "Описание", width: 550 }, //инфо из гитлаба.
{ field: "type", headerName: "Тип", width: 150 },

@ -82,7 +82,7 @@ export default function TariffsDG({ selectedTariffs, handleSelectionChange }: Pr
return {
id: tariff.id,
name: tariff.name,
serviceName: privilege?.serviceKey,
serviceName: privilege?.serviceKey == "templategen" ? "Шаблонизатор" : privilege?.serviceKey,
privilegeName: privilege?.name,
amount: tariff.amount,
pricePerUnit: tariff.isCustom