Remove explicit refresh buttons
This commit is contained in:
parent
6da01fca39
commit
36da54e587
@ -500,11 +500,6 @@ pub fn view(model: &Model, logged_in_user: &User) -> Node<Msg> {
|
|||||||
// Add all the content lines
|
// Add all the content lines
|
||||||
model.links.iter().map(|l| { view_link(l, logged_in_user) })
|
model.links.iter().map(|l| { view_link(l, logged_in_user) })
|
||||||
],
|
],
|
||||||
// A fetch button - this should not be needed and will be removed in future.
|
|
||||||
button![
|
|
||||||
ev(Ev::Click, |_| Msg::Query(QueryMsg::Fetch)),
|
|
||||||
"Fetch links"
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -346,11 +346,6 @@ pub fn view(model: &Model, logged_in_user: &User) -> Node<Msg> {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|u| { view_user(u, logged_in_user, &t) })
|
.map(|u| { view_user(u, logged_in_user, &t) })
|
||||||
],
|
],
|
||||||
// A refresh button. This will be removed in future versions.
|
|
||||||
button![
|
|
||||||
ev(Ev::Click, |_| Msg::Query(UserQueryMsg::Fetch)),
|
|
||||||
"Refresh"
|
|
||||||
],
|
|
||||||
// Display the user edit dialog if available
|
// Display the user edit dialog if available
|
||||||
if let Some(l) = &model.user_edit {
|
if let Some(l) = &model.user_edit {
|
||||||
edit_or_create_user(l.clone(), t)
|
edit_or_create_user(l.clone(), t)
|
||||||
|
Loading…
Reference in New Issue
Block a user