Skip to content

Commit

Permalink
Use translated string & remove swiftlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Nov 20, 2017
1 parent 8396662 commit 362e6e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions HomeAssistant/Views/SettingsDetailViewController.swift
Expand Up @@ -172,7 +172,7 @@ class SettingsDetailViewController: FormViewController {
}

case "notifications":
self.title = "Notification Settings"
self.title = L10n.SettingsDetails.Notifications.title
self.form
+++ Section()
<<< SwitchRow("confirmBeforeOpeningUrl") {
Expand Down Expand Up @@ -204,10 +204,10 @@ class SettingsDetailViewController: FormViewController {
$0.title = L10n.SettingsDetails.Notifications.UpdateSection.Button.title
}.onCellSelection {_, _ in
HomeAssistantAPI.sharedInstance.setupPush()
// swiftlint:disable:next line_length
let alert = UIAlertController(title: L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.title,
// swiftlint:disable:next line_length
message: L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.message,
let title = L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.title
let message = L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.message
let alert = UIAlertController(title: title,
message: message,
preferredStyle: UIAlertControllerStyle.alert)
alert.addAction(UIAlertAction(title: L10n.okLabel, style: UIAlertActionStyle.default,
handler: nil))
Expand Down

0 comments on commit 362e6e6

Please sign in to comment.