Created some logic in TaskRepository. Added id to models, etc...

This commit is contained in:
maciejrusek
2026-04-29 20:28:44 +02:00
parent 54c7bb47b5
commit 49b3239148
8 changed files with 304 additions and 26 deletions

View File

@@ -17,13 +17,25 @@ public class HomePanel extends BasePanel {
changePanel.accept("auth");
}
JButton logoutButton = new JButton("Logout");
logoutButton.addActionListener(e -> {
Session.getInstance().logout();
changePanel.accept("auth");
});
// Wyświetlenie wszystkich tasków tylko dzisiejszych tasków
// Umożliwienie utworzenia nowych tasków.
add(logoutButton);
}

View File

@@ -18,7 +18,6 @@ public class MyFrame extends JFrame {
mainPanel.add(new HomePanel(this::changePanel), "home");
}
public MyFrame() {
super("Todo App");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);