app: Disable the add user/group buttons when relevant

This commit is contained in:
Valentin Tolmer
2021-10-11 19:20:13 +02:00
committed by nitnelave
parent 01c82f09eb
commit 9a68563c0b
5 changed files with 58 additions and 70 deletions

View File

@@ -69,6 +69,7 @@ impl Component for Select {
html! {
<select
ref=self.node_ref.clone()
disabled=self.props.children.is_empty()
onchange=self.link.callback(SelectMsg::OnSelectChange)>
{ self.props.children.clone() }
</select>