mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
add type selection
This commit is contained in:
parent
73a9f3c40c
commit
0987baaf4b
@ -183,6 +183,8 @@ const ApiTokenCreateView = () => {
|
||||
return 'custom';
|
||||
}, [hasAllActionsSelected, hasReadOnlyActionsSelected, hasAllActionsNotSelected]);
|
||||
|
||||
console.log('tokenType', tokenTypeValue);
|
||||
|
||||
const handleChangeCheckbox = ({ target: { name, value } }) => {
|
||||
dispatch({
|
||||
type: 'ON_CHANGE',
|
||||
@ -425,7 +427,7 @@ const ApiTokenCreateView = () => {
|
||||
id: 'Settings.apiTokens.form.type',
|
||||
defaultMessage: 'Token type',
|
||||
})}
|
||||
value={tokenTypeValue}
|
||||
value={values.type}
|
||||
error={
|
||||
errors.type
|
||||
? formatMessage(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user