show unsynced symbol in the name of password in password detail page

This commit is contained in:
Bob Sun 2017-02-19 00:55:13 +08:00
parent 8396b57a72
commit ceb52a5b33
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -224,7 +224,11 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
if sectionIndex == 0 && rowIndex == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "passwordDetailTitleTableViewCell", for: indexPath) as! PasswordDetailTitleTableViewCell
cell.passwordImageImageView.image = passwordImage ?? #imageLiteral(resourceName: "PasswordImagePlaceHolder")
cell.nameLabel.text = passwordEntity?.name
var passwordName = passwordEntity!.name!
if passwordEntity!.synced == false {
passwordName = "\(passwordName)"
}
cell.nameLabel.text = passwordName
cell.categoryLabel.text = passwordCategoryText
return cell
} else {