Tunnel creation: An uneditable field's value should be grey as well

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-24 14:22:28 +05:30
parent 0ae4b3bcf1
commit 3b77f824b6
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ class TunnelsEditTableViewKeyValueCell: UITableViewCell {
set(value) {
valueTextField.isEnabled = value
keyLabel.textColor = value ? UIColor.black : UIColor.gray
valueTextField.textColor = value ? UIColor.black : UIColor.gray
}
}
var isValueValid: Bool = true {