fixed modals to clear after adding users / tasks / availabilities / events

This commit is contained in:
z1glr
2025-02-07 12:41:42 +01:00
parent feb68ecd78
commit 9acab1ad09
6 changed files with 30 additions and 4 deletions

View File

@@ -101,7 +101,9 @@ export default function UserEditor(props: {
<Input
isRequired={props.isPasswordRequired}
label="Password"
color={password.length > 0 ? "warning" : "default"}
color={
password.length > 0 && !!props.value ? "warning" : "default"
}
name="password"
variant="bordered"
value={password}