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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user