add api key detail

This commit is contained in:
Simon Larsen 2022-07-30 13:37:33 +01:00
parent ef753e75e2
commit 967c72895b
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 25 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import React, {
MutableRefObject,
ReactElement,
useEffect,
useState,

View File

@ -11,6 +11,8 @@ import TableColumnType from 'CommonUI/src/Components/Table/Types/TableColumnType
import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType';
import { IconProp } from 'CommonUI/src/Components/Icon/Icon';
import CardModelDetail from "CommonUI/src/Components/ModelDetail/CardModelDetail";
import ApiKey from 'Common/Models/ApiKey';
import Navigation from 'CommonUI/src/Utils/Navigation';
const APIKeyView: FunctionComponent<PageComponentProps> = (
props: PageComponentProps
@ -43,11 +45,32 @@ const APIKeyView: FunctionComponent<PageComponentProps> = (
<CardModelDetail
cardProps={{
title: "API Key Details",
description: "API Key Description",
description: "API Key Description",
icon: IconProp.Terminal,
}
}
modelDetailProps={}
modelDetailProps={
{
type: ApiKey,
model: new ApiKey(),
id: "model-detail-api-key",
fields: [
{
field: {
name: true
},
title: "Name",
},
{
field: {
description: true
},
title: "Description",
},
],
modelId: Navigation.getParamByName("id"),
}
}
/>
{/* API Key Permisison Table */}