2062 view edit an api key (#2231)
* Add query to get api keys * Add a link to apiKey detail page * Reset generatedApiKey when leaving page * Simplify stuff * Regenerate key when clicking on button * Simplify * Fix test * Refetch apiKeys when delete or create one * Add test for utils * Create utils function * Enable null expiration dates * Update formatExpiration * Fix display * Fix noteCard * Fix errors * Fix reset * Fix display * Fix renaming * Fix tests * Fix ci * Fix mocked data * Fix test * Update coverage requiremeents * Rename folder * Code review returns * Symplify sht code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const ExpirationDates: {
|
||||
value: number;
|
||||
value: number | null;
|
||||
label: string;
|
||||
}[] = [
|
||||
{ label: '15 days', value: 15 },
|
||||
@@ -7,5 +7,5 @@ export const ExpirationDates: {
|
||||
{ label: '90 days', value: 90 },
|
||||
{ label: '1 year', value: 365 },
|
||||
{ label: '2 years', value: 2 * 365 },
|
||||
{ label: 'Never', value: 10 * 365 },
|
||||
{ label: 'Never', value: null },
|
||||
];
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
import { v4 } from 'uuid';
|
||||
|
||||
import { ApisFiedlItem } from '../types/ApisFieldItem';
|
||||
|
||||
export const activeApiKeyItems: ApisFiedlItem[] = [
|
||||
{
|
||||
id: v4(),
|
||||
name: 'Zapier key',
|
||||
type: 'internal',
|
||||
expiration: 'In 80 days',
|
||||
},
|
||||
{
|
||||
id: v4(),
|
||||
name: 'Notion',
|
||||
type: 'internal',
|
||||
expiration: 'Expired',
|
||||
},
|
||||
{
|
||||
id: v4(),
|
||||
name: 'Trello',
|
||||
type: 'internal',
|
||||
expiration: 'In 1 year',
|
||||
},
|
||||
{
|
||||
id: v4(),
|
||||
name: 'Cargo',
|
||||
type: 'published',
|
||||
expiration: 'Never',
|
||||
},
|
||||
{
|
||||
id: v4(),
|
||||
name: 'Backoffice',
|
||||
type: 'published',
|
||||
expiration: 'In 32 days',
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user