mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Service Accounts: Allow unsetting token expiry date (#65862)
* Fix: toggle to switch between no expiry * Remove redudant curly brace
This commit is contained in:
parent
673aee30c2
commit
1c6f8fd902
@ -109,16 +109,14 @@ export const CreateTokenModal = ({ isOpen, token, serviceAccountLogin, onCreateT
|
||||
}}
|
||||
/>
|
||||
</Field>
|
||||
{!isWithExpirationDate && (
|
||||
<Field label="Expiration">
|
||||
<RadioButtonGroup
|
||||
options={EXPIRATION_OPTIONS}
|
||||
value={isWithExpirationDate}
|
||||
onChange={setIsWithExpirationDate}
|
||||
size="md"
|
||||
/>
|
||||
</Field>
|
||||
)}
|
||||
<Field label="Expiration">
|
||||
<RadioButtonGroup
|
||||
options={EXPIRATION_OPTIONS}
|
||||
value={isWithExpirationDate}
|
||||
onChange={setIsWithExpirationDate}
|
||||
size="md"
|
||||
/>
|
||||
</Field>
|
||||
{isWithExpirationDate && (
|
||||
<Field label="Expiration date">
|
||||
<DatePickerWithInput
|
||||
|
Loading…
Reference in New Issue
Block a user