Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/view/LoggedInView.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ public void changedUpdate(DocumentEvent e) {
* @param evt the ActionEvent to react to
*/
public void actionPerformed(ActionEvent evt) {
// TODO: execute the logout use case through the Controller
System.out.println("Click " + evt.getActionCommand());
if (evt.getSource().equals(logOut)) {
logoutController.execute();
}
}

@Override
Expand Down Expand Up @@ -140,6 +142,6 @@ public void setChangePasswordController(ChangePasswordController changePasswordC
}

public void setLogoutController(LogoutController logoutController) {
// TODO: save the logout controller in the instance variable.
this.logoutController = logoutController;
}
}