From 7ec69d883f1dd84872f07c30fe988749497d81f6 Mon Sep 17 00:00:00 2001 From: Max Behzadi <69126271+MaxTheGeeek@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:01:01 +0200 Subject: [PATCH] FIX: server management form validation (#1816) * REMOVE: useless * FIX: login form validation * ADD: empty from validation --- .../server-management/components/login-form/LoginForm.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/launcher/src/components/UI/server-management/components/login-form/LoginForm.vue b/launcher/src/components/UI/server-management/components/login-form/LoginForm.vue index f7a0c2fa6..8f30c7f00 100644 --- a/launcher/src/components/UI/server-management/components/login-form/LoginForm.vue +++ b/launcher/src/components/UI/server-management/components/login-form/LoginForm.vue @@ -316,7 +316,12 @@ const buttonDisabled = computed(() => { ipError.value.length > 0 || usernameError.value.length > 0 || (useSSHKey.value && sshError.value.length > 0) || - (!useSSHKey.value && passwordError.value.length > 0) + + (!useSSHKey.value && passwordError.value.length > 0) || + serverStore.loginState.hostName === "" || + serverStore.loginState.ip === "" || + serverStore.loginState.username === "" + ); });