IOS-2063 Disable trusted security icon is used now IOS-2063
authorAdam Kowalski <ak@pep.security>
Fri, 07 Feb 2020 16:05:29 +0100
branchIOS-2063
changeset 11676cc8dc3fc0c9c
parent 11664 0ec0407f34ae
child 11682 7d58290e2ce3
IOS-2063 Disable trusted security icon is used now
pEpForiOS/UI/Compose/ComposeTableViewController.swift
pEpForiOS/UI/Util/PEP+UI.swift
     1.1 --- a/pEpForiOS/UI/Compose/ComposeTableViewController.swift	Fri Feb 07 13:24:40 2020 +0100
     1.2 +++ b/pEpForiOS/UI/Compose/ComposeTableViewController.swift	Fri Feb 07 16:05:29 2020 +0100
     1.3 @@ -154,8 +154,10 @@
     1.4      }
     1.5  
     1.6      private func changeSecureStatusAction(pEpProtected: Bool) -> UIAlertAction {
     1.7 -        let disable = NSLocalizedString("Disable Protection", comment: "action sheet title")
     1.8 -        let enable = NSLocalizedString("Enable Protection", comment: "action sheet title")
     1.9 +        let disable = NSLocalizedString("Disable Protection",
    1.10 +                                        comment: "Disable Protection button title of pEp protection toggle action sheet")
    1.11 +        let enable = NSLocalizedString("Enable Protection",
    1.12 +                                       comment: "Enable Protection button title of pEp protection toggle action sheet")
    1.13  
    1.14          let action = UIAlertAction(title: pEpProtected ? disable : enable ,
    1.15                                     style: .default) { [weak self] (action) in
    1.16 @@ -171,7 +173,8 @@
    1.17  
    1.18      private func disableAlertAction() -> UIAlertAction {
    1.19          return UIAlertAction(
    1.20 -            title: NSLocalizedString("Cancel", comment: "possible private status action"),
    1.21 +            title: NSLocalizedString("Cancel",
    1.22 +                                     comment: "Cancel button title of pEp protection toggle action sheet"),
    1.23              style: .cancel) { (action) in }
    1.24      }
    1.25  
     2.1 --- a/pEpForiOS/UI/Util/PEP+UI.swift	Fri Feb 07 13:24:40 2020 +0100
     2.2 +++ b/pEpForiOS/UI/Util/PEP+UI.swift	Fri Feb 07 16:05:29 2020 +0100
     2.3 @@ -33,7 +33,7 @@
     2.4              if enabled {
     2.5                  return UIImage(named: "pEp-status-msg-green")
     2.6              } else {
     2.7 -                return UIImage(named: "pEp-status-msg-disabled-secure")
     2.8 +                return UIImage(named: "pEp-status-msg-disabled-trusted")
     2.9              }
    2.10          }
    2.11      }