дг тарифов выводит переименованный сервис кей
This commit is contained in:
parent
a81536f1c9
commit
d919569f9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user