From b1a3e56d0412d61e3fc11f894ae424c714ef3687 Mon Sep 17 00:00:00 2001 From: effe Date: Sun, 15 Sep 2024 17:22:20 -0400 Subject: [PATCH] refactor: ExpensesView columns --- .../com/application/munera/views/expenses/ExpensesView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/application/munera/views/expenses/ExpensesView.java b/src/main/java/com/application/munera/views/expenses/ExpensesView.java index ed5599b..9bb2209 100644 --- a/src/main/java/com/application/munera/views/expenses/ExpensesView.java +++ b/src/main/java/com/application/munera/views/expenses/ExpensesView.java @@ -106,8 +106,8 @@ public class ExpensesView extends Div implements BeforeEnterObserver { grid.addColumn(Expense::getName).setHeader("Name").setSortable(true).setSortProperty("name"); grid.addColumn(Expense::getCost).setHeader("Amount").setSortable(true).setSortProperty("cost"); grid.addColumn(expenseCategory -> expenseCategory.getCategory().getName()).setHeader("Category").setSortable(true).setSortProperty("category"); - grid.addColumn(Expense::getPeriodInterval).setHeader("Period Interval").setSortable(true); - grid.addColumn(Expense::getPeriodUnit).setHeader("Period Unit").setSortable(true); +// grid.addColumn(Expense::getPeriodInterval).setHeader("Period Interval").setSortable(true); +// grid.addColumn(Expense::getPeriodUnit).setHeader("Period Unit").setSortable(true); grid.addColumn(Expense::getDate).setHeader("Date").setSortable(true).setSortProperty("date"); grid.addColumn(new ComponentRenderer<>(this.viewsService::createExpenseBadge)).setHeader("Status").setSortable(true); grid.getColumns().forEach(col -> col.setAutoWidth(true));