Skip to content

Commit

Permalink
[Merge] 'develop' into feature/DO-NOTTO-DO#84
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Jan 13, 2023
2 parents 8f54c5e + bb9846a commit 6c31dae
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ extension MissionHistoryViewController {
}

private func setAddTarget() {
missionHistoryView.backButton.addTarget(self, action: #selector(popToAddMissionViewController), for: .touchUpInside)
missionHistoryView.inputTextField.keyboardToolbar.doneBarButton.setTarget(self, action: #selector(popToAddMissionViewController))
missionHistoryView.backButton.addTarget(self, action: #selector(cancelMissionHistory), for: .touchUpInside)
}

private func requestMissionHistoryAPI() {
Expand All @@ -66,6 +67,10 @@ extension MissionHistoryViewController {
sendData()
}

@objc private func cancelMissionHistory() {
self.navigationController?.popViewController(animated: true)
}

private func sendData() {
delegate?.sendMissionHistoryData(data: missionHistoryView.inputTextField.text ?? "")
self.navigationController?.popViewController(animated: true)
Expand Down

0 comments on commit 6c31dae

Please sign in to comment.