Created some logic in TaskRepository. Added id to models, etc...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user