diff --git a/server/src/html/mod.rs b/server/src/html/mod.rs index caf1309c8d93b47104499c57f9cc35ee7631fbb9..db5b4c7f06b0be64603981166835cde268234f67 100644 --- a/server/src/html/mod.rs +++ b/server/src/html/mod.rs @@ -185,7 +185,11 @@ pub fn fetch_entity_panel(item: &ItemId, has_data: bool, fetching: bool) -> Mark html! { form method="post" action="/ui" id="fetch-entity-form" class="fetch-entity-form" { input type="hidden" name=(UI_RPC_FIELD) value=(rpc); - button type="submit" class="btn-secondary" disabled=(fetching) { (label) } + @if fetching { + button type="submit" class="btn-secondary" disabled { (label) } + } @else { + button type="submit" class="btn-secondary" { (label) } + } } } }