Rename discard context to drop context

This commit is contained in:
Spxg
2025-05-25 15:48:25 +08:00
parent 3e414e0c86
commit 908fb127a1
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ pub fn ContextMenu() -> impl IntoView {
view! { view! {
<MenuGroup title="Choose whether to keep the context".into()> <MenuGroup title="Choose whether to keep the context".into()>
<SelectOne <SelectOne
name="Discard Context".into() name="Drop Context".into()
current_value=move || { *state.keep_ctx().read() } current_value=move || { *state.keep_ctx().read() }
this_value=false this_value=false
change_value=move || { change_value=move || {

View File

@@ -277,7 +277,7 @@ fn ContextMenuButton(menu_container: NodeRef<html::element::Div>) -> impl IntoVi
let button = move |toggle, node_ref| { let button = move |toggle, node_ref| {
view! { view! {
<Button icon_right=expandable_icon() on_click=toggle node_ref=node_ref> <Button icon_right=expandable_icon() on_click=toggle node_ref=node_ref>
{move || if *state.keep_ctx().read() { "Keep Context" } else { "Discard Context" }} {move || if *state.keep_ctx().read() { "Keep Context" } else { "Drop Context" }}
</Button> </Button>
} }
.into_any() .into_any()