дг тарифов выводит переименованный сервис кей
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";
|
import { usePrivilegeStore } from "@root/stores/privilegesStore";
|
||||||
|
|
||||||
const columns: GridColDef[] = [
|
const columns: GridColDef[] = [
|
||||||
{ field: "id", headerName: "id", width: 40 },
|
{ field: "id", headerName: "id", width: 150 },
|
||||||
{ field: "name", headerName: "Привелегия", width: 150 },
|
{ field: "name", headerName: "Привелегия", width: 150 },
|
||||||
{ field: "description", headerName: "Описание", width: 550 }, //инфо из гитлаба.
|
{ field: "description", headerName: "Описание", width: 550 }, //инфо из гитлаба.
|
||||||
{ field: "type", headerName: "Тип", width: 150 },
|
{ field: "type", headerName: "Тип", width: 150 },
|
||||||
|
@ -82,7 +82,7 @@ export default function TariffsDG({ selectedTariffs, handleSelectionChange }: Pr
|
|||||||
return {
|
return {
|
||||||
id: tariff.id,
|
id: tariff.id,
|
||||||
name: tariff.name,
|
name: tariff.name,
|
||||||
serviceName: privilege?.serviceKey,
|
serviceName: privilege?.serviceKey == "templategen" ? "Шаблонизатор" : privilege?.serviceKey,
|
||||||
privilegeName: privilege?.name,
|
privilegeName: privilege?.name,
|
||||||
amount: tariff.amount,
|
amount: tariff.amount,
|
||||||
pricePerUnit: tariff.isCustom
|
pricePerUnit: tariff.isCustom
|
||||||
|
Loading…
Reference in New Issue
Block a user