mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Allow adding server without password (#48)
This commit is contained in:
@@ -45,8 +45,7 @@ export const AddServerForm = ({ onCancel }: AddServerFormProps) => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const isSubmitDisabled =
|
const isSubmitDisabled = !form.values.name || !form.values.url || !form.values.username;
|
||||||
!form.values.name || !form.values.url || !form.values.username || !form.values.password;
|
|
||||||
|
|
||||||
const handleSubmit = form.onSubmit(async (values) => {
|
const handleSubmit = form.onSubmit(async (values) => {
|
||||||
const authFunction = AUTH_FUNCTIONS[values.type];
|
const authFunction = AUTH_FUNCTIONS[values.type];
|
||||||
|
|||||||
Reference in New Issue
Block a user