mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(ui): dim password field when password generation option is selected (#1427)
* fix(ui): dim password field when password generation option is selected * fix: use ternary operator instead of &&
This commit is contained in:
@@ -372,7 +372,7 @@ const UserList: React.FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={`form-row ${
|
className={`form-row ${
|
||||||
!notificationSettings?.emailEnabled && 'opacity-50'
|
notificationSettings?.emailEnabled ? '' : 'opacity-50'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<label htmlFor="genpassword" className="checkbox-label">
|
<label htmlFor="genpassword" className="checkbox-label">
|
||||||
@@ -388,7 +388,11 @@ const UserList: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-row">
|
<div
|
||||||
|
className={`form-row ${
|
||||||
|
values.genpassword ? 'opacity-50' : ''
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<label htmlFor="password" className="text-label">
|
<label htmlFor="password" className="text-label">
|
||||||
{intl.formatMessage(messages.password)}
|
{intl.formatMessage(messages.password)}
|
||||||
</label>
|
</label>
|
||||||
|
Reference in New Issue
Block a user