Skip to content

Commit

Permalink
show credentials openapi documentation in add/update credentials UI
Browse files Browse the repository at this point in the history
  • Loading branch information
WangLiNaruto committed Sep 6, 2023
1 parent 99c9aca commit 687c00e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/content/credential/AddCredential.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { CredentialTip } from './CredentialTip';
import { useMutation, useQuery, UseQueryResult } from '@tanstack/react-query';
import { cspMap } from '../order/formElements/CspSelect';
import { CredentialApiDoc } from '../common/doc/CredentialApiDoc';
import { CredentialApiDoc } from './CredentialApiDoc';

function AddCredential({
credentialsQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

import { LinkOutlined } from '@ant-design/icons';
import '../../../../styles/app.css';
import { CredentialsManagementService, CredentialVariables, Link } from '../../../../xpanse-api/generated';
import '../../../styles/app.css';
import { CredentialsManagementService, CredentialVariables, Link } from '../../../xpanse-api/generated';

export function CredentialApiDoc({
csp,
Expand Down
4 changes: 2 additions & 2 deletions src/components/content/credential/UpdateCredential.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import '../../../styles/credential.css';
import { CredentialTip } from './CredentialTip';
import { useMutation, UseQueryResult } from '@tanstack/react-query';
import { cspMap } from '../order/formElements/CspSelect';
import { CredentialApiDoc } from '../common/doc/CredentialApiDoc';
import { CredentialApiDoc } from './CredentialApiDoc';

function UpdateCredential({
createCredential,
Expand Down Expand Up @@ -194,7 +194,7 @@ function UpdateCredential({
<CredentialApiDoc
csp={createCredential.csp}
credentialType={createCredential.type}
styleClass={'add-credential-api-doc'}
styleClass={'update-credential-api-doc'}
/>
<Form
form={form}
Expand Down
15 changes: 14 additions & 1 deletion src/styles/credential.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,18 @@
display: inline;
padding: 0;
margin-top: -27px;
margin-right: 680px;
margin-right: 240px;
}

.update-credential-api-doc{
font-size: 6px;
font-weight: bold;
float: right;
background-color: transparent;
border: none;
cursor: pointer;
display: inline;
padding: 0;
margin-top: -27px;
margin-right: 250px;
}

0 comments on commit 687c00e

Please sign in to comment.