Logs folder and activity log date default
This commit is contained in:
@@ -17,6 +17,7 @@ import org.example.petshopdesktop.api.endpoints.ActivityLogApi;
|
||||
import org.example.petshopdesktop.util.ActivityLogger;
|
||||
import org.example.petshopdesktop.util.TableViewSupport;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
|
||||
@@ -86,6 +87,8 @@ public class ActivityLogController {
|
||||
|
||||
filteredLogs = new FilteredList<>(activityLogs, a -> true);
|
||||
TableViewSupport.bindSortedItems(tvActivityLogs, filteredLogs);
|
||||
dpStart.setValue(LocalDate.now().minusDays(30));
|
||||
dpEnd.setValue(LocalDate.now());
|
||||
loadLogs();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</children>
|
||||
</HBox>
|
||||
|
||||
<Label text="Showing most recent 2000 activity records" textFill="#64748b" />
|
||||
<Label text="Showing activity for the selected date range" textFill="#64748b" />
|
||||
|
||||
<TableView fx:id="tvActivityLogs" style="-fx-background-color: white; -fx-background-radius: 12;" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
|
||||
Reference in New Issue
Block a user