app: wrap template arguments in braces

To prepare for the migration to yew 1.19
This commit is contained in:
Valentin Tolmer
2023-03-08 14:27:47 +01:00
committed by nitnelave
parent 07523219d1
commit f44e8b7659
19 changed files with 153 additions and 135 deletions

View File

@@ -86,11 +86,12 @@ impl Component for RemoveUserFromGroupComponent {
}
fn view(&self) -> Html {
let link = &self.common;
html! {
<button
class="btn btn-danger"
disabled=self.common.is_task_running()
onclick=self.common.callback(|_| Msg::SubmitRemoveGroup)>
disabled={self.common.is_task_running()}
onclick={link.callback(|_| Msg::SubmitRemoveGroup)}>
<i class="bi-x-circle-fill" aria-label="Remove user from group" />
</button>
}