From 41515b0f2b484f648e60503e7c23e2589f986420 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 14 Nov 2024 12:57:48 +0200 Subject: [PATCH] use title for input status by provider --- src/app/browser/window/tab/item/page.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index abcb56e4..30354ee0 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -490,10 +490,9 @@ impl Page { gemini::client::response::meta::Status::SensitiveInput => { // Format response let status = Status::Input; - let title = "Input expected"; - let description = match response.data() { + let title = match response.data() { Some(data) => data.value().as_str(), - None => title, + None => "Input expected", }; // Toggle input form variant @@ -502,14 +501,14 @@ impl Page { input.set_new_sensitive( tab_action, uri, - Some(description), + Some(title), Some(1024), ), _ => input.set_new_response( tab_action, uri, - Some(description), + Some(title), Some(1024), ), }