mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 Fix crash with new secure/unsecure mechanism
This commit is contained in:
@ -81,19 +81,23 @@ extension DomainListVC {
|
||||
// Toggle secure
|
||||
try await proxy.toggleSecure()
|
||||
|
||||
// Reload the UI
|
||||
self.reloadSelectedRow()
|
||||
|
||||
// Send a notification about the new status (if applicable)
|
||||
LocalNotification.send(
|
||||
title: "domain_list.alerts_status_changed.title".localized,
|
||||
subtitle: "domain_list.alerts_status_changed.desc"
|
||||
.localized(
|
||||
// 1. The domain that was secured is listed
|
||||
"\(proxy.domain).\(Valet.shared.config.tld)",
|
||||
// 2. What the domain is is listed (secure / unsecure)
|
||||
proxy.secured
|
||||
? "domain_list.alerts_status_secure".localized
|
||||
: "domain_list.alerts_status_secure".localized
|
||||
),
|
||||
preference: .notifyAboutSecureToggle
|
||||
)
|
||||
|
||||
// Reload the UI (do this last so we don't invalidate the proxy)
|
||||
self.reloadSelectedRow()
|
||||
} catch {
|
||||
let error = error as! ValetInteractionError
|
||||
|
||||
|
@ -121,6 +121,8 @@
|
||||
|
||||
"domain_list.alerts_status_changed.title" = "SSL Status Changed";
|
||||
"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_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