From 896fdc6a1afc5863ee839efe975140239d96b25e Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 21 Nov 2024 12:20:59 +0200 Subject: [PATCH] fix form validation --- .../browser/window/tab/item/identity/gemini/widget/form.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form.rs index 34494afe..8b2b1de1 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form.rs @@ -57,7 +57,11 @@ impl Form { // Actions + /// Validate form in current set pub fn is_valid(&self) -> bool { - self.name.is_valid() // @TODO + match self.list.selected() { + Value::GENERATE_NEW_AUTH => self.name.is_valid(), + _ => true, + } } }