Rename discard context to drop context
This commit is contained in:
@@ -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 || {
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user