Skip to content

Commit

Permalink
Merge pull request #1881 from nextcloud/fix/noid/position-of-navigati…
Browse files Browse the repository at this point in the history
…on-items

fix: Swap positions of navigation items in FederationInvitationTableViewController
  • Loading branch information
SystemKeeper authored Nov 18, 2024
2 parents d7eb5ac + e293ec5 commit da3f3ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NextcloudTalk/FederationInvitationTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FederationInvitationTableViewController: UITableViewController, Federation
barButtonItem.primaryAction = UIAction(title: NSLocalizedString("Close", comment: ""), handler: { [unowned self] _ in
self.dismiss(animated: true)
})
self.navigationItem.rightBarButtonItems = [barButtonItem]
self.navigationItem.leftBarButtonItems = [barButtonItem]

self.tableView.register(UINib(nibName: federationInvitationCellIdentifier, bundle: nil), forCellReuseIdentifier: federationInvitationCellIdentifier)
self.tableView.backgroundView = backgroundView
Expand Down Expand Up @@ -84,12 +84,12 @@ class FederationInvitationTableViewController: UITableViewController, Federation

func showActivityIndicator() {
self.modifyingViewIndicator.startAnimating()
self.navigationItem.leftBarButtonItem = UIBarButtonItem(customView: modifyingViewIndicator)
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customView: modifyingViewIndicator)
}

func hideActivityIndicator() {
self.modifyingViewIndicator.stopAnimating()
self.navigationItem.leftBarButtonItem = nil
self.navigationItem.rightBarButtonItem = nil
}

// MARK: - Table view data source
Expand Down

0 comments on commit da3f3ad

Please sign in to comment.