mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
add default server name to add server form
This commit is contained in:
@@ -97,7 +97,8 @@ export const AddServerForm = ({ onCancel }: AddServerFormProps) => {
|
|||||||
const form = useForm({
|
const form = useForm({
|
||||||
initialValues: {
|
initialValues: {
|
||||||
legacyAuth: false,
|
legacyAuth: false,
|
||||||
name: (localSettings ? localSettings.env.SERVER_NAME : window.SERVER_NAME) ?? '',
|
name:
|
||||||
|
(localSettings ? localSettings.env.SERVER_NAME : window.SERVER_NAME) || 'My Server',
|
||||||
password: '',
|
password: '',
|
||||||
preferInstantMix: undefined,
|
preferInstantMix: undefined,
|
||||||
savePassword: undefined,
|
savePassword: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user