forge
Explore
Log in

Don't you dare go Hollow

New token, Add SSH key and Add GPG key open their form again: the link sends ?add=1, since a bare ?add parses as no value

Browse files at this commit

37d147a31de3844d2b99f4e9273737187a5c9573Ahmet Kaan GümüşParent: 9e31559
  • fix
    • New token, Add SSH key and Add GPG key open their form again: the link sends ?add=1, since a bare ?add parses as no value
Show full message
🐛 fix: New token, Add SSH key and Add GPG key open their form again: the link sends ?add=1, since a bare ?add parses as no value
crates/forge-web/src/pages/settings_keys.rsmodified+1 -1
@@ -221,7 +221,7 @@ pub(crate) async fn keys_page_view(
221 })221 })
222 .collect();222 .collect();
223 let sub = Vec::<SubPart>::new();223 let sub = Vec::<SubPart>::new();
224- let add_href = format!("{}?add", kind.href());224+ let add_href = format!("{}?add=1", kind.href());
225 let add_open = draft.add225 let add_open = draft.add
226 || draft.ssh_error.is_some()226 || draft.ssh_error.is_some()
227 || draft.gpg_error.is_some()227 || draft.gpg_error.is_some()