From ceb52a5b335beed07927a6a7e51ad447b3f967b6 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sun, 19 Feb 2017 00:55:13 +0800 Subject: [PATCH] show unsynced symbol in the name of password in password detail page --- pass/Controllers/PasswordDetailTableViewController.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pass/Controllers/PasswordDetailTableViewController.swift b/pass/Controllers/PasswordDetailTableViewController.swift index 49659b0..e826485 100644 --- a/pass/Controllers/PasswordDetailTableViewController.swift +++ b/pass/Controllers/PasswordDetailTableViewController.swift @@ -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 {