Remove explicit refresh buttons

This commit is contained in:
Dietrich 2021-06-16 09:04:34 +02:00 committed by Franz Dietrich
parent 6da01fca39
commit 36da54e587
2 changed files with 0 additions and 10 deletions

View File

@ -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"
],
] ]
} }

View File

@ -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)