1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
Nuno Góis 2023-01-06 13:07:33 +00:00 committed by GitHub
parent b10d9c435e
commit c244cd6823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,11 @@
import { Alert, styled } from '@mui/material';
import { Dialogue } from 'component/common/Dialogue/Dialogue';
import { IUser } from 'interfaces/user';
import { ServiceAccountTokens } from '../ServiceAccountModal/ServiceAccountTokens/ServiceAccountTokens';
const StyledTableContainer = styled('div')(({ theme }) => ({
marginTop: theme.spacing(1.5),
}));
const StyledLabel = styled('p')(({ theme }) => ({
marginTop: theme.spacing(3),
@ -34,6 +39,13 @@ export const ServiceAccountDeleteDialog = ({
Deleting this service account may break any existing
implementations currently using it.
</Alert>
<StyledLabel>Service account tokens</StyledLabel>
<StyledTableContainer>
<ServiceAccountTokens
serviceAccount={serviceAccount!}
readOnly
/>
</StyledTableContainer>
<StyledLabel>
You are about to delete service account:{' '}
<strong>{serviceAccount?.name}</strong>

View File

@ -105,7 +105,7 @@ export const ServiceAccountTokens = ({
usePersonalAPITokensApi();
const [initialState] = useState(() => ({
sortBy: [defaultSort],
sortBy: readOnly ? [{ id: 'seenAt' }] : [defaultSort],
}));
const [searchValue, setSearchValue] = useState('');