pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 2067 a4fb0b2e9cd9
parent 2041 eaac91f98aab
child 2132 4289912d9366
equal deleted inserted replaced
2066:3704c938d663 2067:a4fb0b2e9cd9
    34      After trustwords have been invoked, this will be the partner identity that
    34      After trustwords have been invoked, this will be the partner identity that
    35      was either confirmed or mistrusted.
    35      was either confirmed or mistrusted.
    36      */
    36      */
    37     var partnerIdentity: Identity?
    37     var partnerIdentity: Identity?
    38 
    38 
       
    39     @IBOutlet weak var enableFilterButton: UIBarButtonItem!
       
    40     @IBOutlet weak var textFilterButton: UIBarButtonItem!
       
    41 
       
    42     private var filterEnabled = false
       
    43 
    39     override func viewDidLoad() {
    44     override func viewDidLoad() {
    40         super.viewDidLoad()
    45         super.viewDidLoad()
    41 
    46 
    42         title = "EmailList.title".localized
    47         title = "EmailList.title".localized
    43         UIHelper.emailListTableHeight(self.tableView)
    48         UIHelper.emailListTableHeight(self.tableView)
    93     func updateModel() {
    98     func updateModel() {
    94         tableView.reloadData()
    99         tableView.reloadData()
    95     }
   100     }
    96 
   101 
    97 
   102 
    98     private var filterEnabled = false
       
    99     @IBOutlet weak var enableFilterButton: UIBarButtonItem!
       
   100     @IBOutlet weak var textFilterButton: UIBarButtonItem!
       
   101     @IBAction func showUnreadButtonTapped(_ sender: UIBarButtonItem) {
   103     @IBAction func showUnreadButtonTapped(_ sender: UIBarButtonItem) {
   102         if filterEnabled {
   104         if filterEnabled {
   103             filterEnabled = false
   105             filterEnabled = false
   104             textFilterButton.title = ""
   106             textFilterButton.title = ""
   105             enableFilterButton.image = UIImage(named: "unread-icon")
   107             enableFilterButton.image = UIImage(named: "unread-icon")