mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
add api key detail
This commit is contained in:
parent
ef753e75e2
commit
967c72895b
@ -1,5 +1,4 @@
|
||||
import React, {
|
||||
MutableRefObject,
|
||||
ReactElement,
|
||||
useEffect,
|
||||
useState,
|
||||
|
@ -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 */}
|
||||
|
Loading…
Reference in New Issue
Block a user