Skip to content

Commit

Permalink
Programmatically make apiKey permissions field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
big213 committed Apr 15, 2021
1 parent b8d366c commit 51c417b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/models/apiKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const ApiKey = <RecordInfo<'apiKey'>>{
component: CopyableColumn,
},
permissions: {
text: 'Permissions (optional)',
text: 'Permissions',
optional: true,
hint: 'Only use this to specify custom permissions, comma-separated',
serialize: (val: string[]) => val && val.join(','),
parseValue: (val: string) =>
Expand Down

0 comments on commit 51c417b

Please sign in to comment.