Skip to content

Commit

Permalink
feat(polls): Added close button to poll drafts view
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sein <[email protected]>
  • Loading branch information
Ivansss committed Jan 22, 2025
1 parent 93ab188 commit 703d3bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NextcloudTalk/PollDraftsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ class PollDraftsViewController: UITableViewController {
self.navigationItem.compactAppearance = appearance
self.navigationItem.scrollEdgeAppearance = appearance

let closeButton = UIBarButtonItem(title: nil, style: .plain, target: nil, action: nil)
closeButton.primaryAction = UIAction(title: NSLocalizedString("Close", comment: ""), handler: { [unowned self] _ in
self.dismiss(animated: true)
})
self.navigationItem.rightBarButtonItems = [closeButton]

setupBackgroundView()
getPollDrafts()
}
Expand Down

0 comments on commit 703d3bf

Please sign in to comment.