Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
feat(polls): Added close button to poll drafts view
Signed-off-by: Ivan Sein <[email protected]>
  • Loading branch information
Ivansss committed Jan 22, 2025
commit 703d3bf0fba2d0ce4313d1d32575b056fb35254c
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
Loading