disable edit button before finishing decryption
This commit is contained in:
parent
77945b11f8
commit
1b5e98e987
1 changed files with 4 additions and 1 deletions
|
|
@ -66,7 +66,9 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
indicator.startAnimating()
|
indicator.startAnimating()
|
||||||
tableView.addSubview(indicator)
|
tableView.addSubview(indicator)
|
||||||
tableView.addSubview(indicatorLable)
|
tableView.addSubview(indicatorLable)
|
||||||
navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .edit, target: self, action: #selector(pressEdit(_:)))
|
let editUIBarButtonItem = UIBarButtonItem(barButtonSystemItem: .edit, target: self, action: #selector(pressEdit(_:)))
|
||||||
|
editUIBarButtonItem.isEnabled = false
|
||||||
|
navigationItem.rightBarButtonItem = editUIBarButtonItem
|
||||||
|
|
||||||
if let imageData = passwordEntity?.image {
|
if let imageData = passwordEntity?.image {
|
||||||
let image = UIImage(data: imageData as Data)
|
let image = UIImage(data: imageData as Data)
|
||||||
|
|
@ -91,6 +93,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
self?.tableView.reloadData()
|
self?.tableView.reloadData()
|
||||||
indicator.stopAnimating()
|
indicator.stopAnimating()
|
||||||
indicatorLable.isHidden = true
|
indicatorLable.isHidden = true
|
||||||
|
editUIBarButtonItem.isEnabled = true
|
||||||
if let url = password.getURL() {
|
if let url = password.getURL() {
|
||||||
if self?.passwordEntity?.image == nil{
|
if self?.passwordEntity?.image == nil{
|
||||||
self?.updatePasswordImage(url: url)
|
self?.updatePasswordImage(url: url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue