feat: button disable logic
This commit is contained in:
parent
039ffda656
commit
3b2fd229a5
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ public class PeopleView extends Div implements BeforeEnterObserver {
|
|||
} else if (persona instanceof Expense) {
|
||||
Button setExpensePaidButton = new Button("Set as paid", event -> this.expenseFacade.setExpensePaid((Expense) persona, grid));
|
||||
setExpensePaidButton.addThemeVariants(ButtonVariant.LUMO_SMALL);
|
||||
if (Boolean.TRUE.equals(((Expense) persona).getIsPaid())) setExpensePaidButton.setEnabled(false);
|
||||
return setExpensePaidButton;
|
||||
} else return new Span();
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue