mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-07 13:20:05 +01:00
👌 Fix crash with new secure/unsecure mechanism
This commit is contained in:
@@ -81,19 +81,23 @@ extension DomainListVC {
|
|||||||
// Toggle secure
|
// Toggle secure
|
||||||
try await proxy.toggleSecure()
|
try await proxy.toggleSecure()
|
||||||
|
|
||||||
// Reload the UI
|
|
||||||
self.reloadSelectedRow()
|
|
||||||
|
|
||||||
// Send a notification about the new status (if applicable)
|
// Send a notification about the new status (if applicable)
|
||||||
LocalNotification.send(
|
LocalNotification.send(
|
||||||
title: "domain_list.alerts_status_changed.title".localized,
|
title: "domain_list.alerts_status_changed.title".localized,
|
||||||
subtitle: "domain_list.alerts_status_changed.desc"
|
subtitle: "domain_list.alerts_status_changed.desc"
|
||||||
.localized(
|
.localized(
|
||||||
|
// 1. The domain that was secured is listed
|
||||||
"\(proxy.domain).\(Valet.shared.config.tld)",
|
"\(proxy.domain).\(Valet.shared.config.tld)",
|
||||||
|
// 2. What the domain is is listed (secure / unsecure)
|
||||||
proxy.secured
|
proxy.secured
|
||||||
|
? "domain_list.alerts_status_secure".localized
|
||||||
|
: "domain_list.alerts_status_secure".localized
|
||||||
),
|
),
|
||||||
preference: .notifyAboutSecureToggle
|
preference: .notifyAboutSecureToggle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Reload the UI (do this last so we don't invalidate the proxy)
|
||||||
|
self.reloadSelectedRow()
|
||||||
} catch {
|
} catch {
|
||||||
let error = error as! ValetInteractionError
|
let error = error as! ValetInteractionError
|
||||||
|
|
||||||
|
|||||||
@@ -121,6 +121,8 @@
|
|||||||
|
|
||||||
"domain_list.alerts_status_changed.title" = "SSL Status Changed";
|
"domain_list.alerts_status_changed.title" = "SSL Status Changed";
|
||||||
"domain_list.alerts_status_changed.desc" = "The domain '%@' is now %@.";
|
"domain_list.alerts_status_changed.desc" = "The domain '%@' is now %@.";
|
||||||
|
"domain_list.alerts_status_secure" = "secure";
|
||||||
|
"domain_list.alerts_status_unsecure" = "unsecure";
|
||||||
|
|
||||||
"domain_list.confirm_unlink" = "Are you sure you want to unlink '%@'?";
|
"domain_list.confirm_unlink" = "Are you sure you want to unlink '%@'?";
|
||||||
"domain_list.confirm_unlink_desc" = "No files will be removed. You can always link the folder again by clicking on the + button and selecting the original folder.";
|
"domain_list.confirm_unlink_desc" = "No files will be removed. You can always link the folder again by clicking on the + button and selecting the original folder.";
|
||||||
|
|||||||
Reference in New Issue
Block a user