-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.ts
47 lines (43 loc) · 893 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { CustomField } from '@exogee/graphweaver-admin-ui-components';
import {
ConfirmComponent,
PasswordComponent,
SecretFieldComponent,
} from '@exogee/graphweaver-auth-ui-components';
import { Link } from './link';
export const customFields = new Map<string, CustomField[]>();
customFields.set('Task', [
{
name: 'search',
type: 'custom',
index: 3,
component: Link,
hideOnDetailForm: true,
},
]);
customFields.set('Credential', [
{
name: 'password',
type: 'custom',
component: PasswordComponent,
hideOnTable: true,
initialValue: '',
},
{
name: 'confirm',
type: 'custom',
component: ConfirmComponent,
hideOnTable: true,
initialValue: '',
},
]);
// Contains the generate secret and api key button
customFields.set('ApiKey', [
{
name: 'secret',
type: 'custom',
component: SecretFieldComponent,
hideOnTable: true,
initialValue: '',
},
]);