From d2cd387c183f3256f8acacc3eee39c5d98fbd37f Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Fri, 22 Nov 2024 18:23:28 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20button=20that=20redirects=20t?= =?UTF-8?q?o=20wiki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Common/Core/Constants.swift | 4 ++++ .../PHP Version Manager/UI/PhpVersionManagerView.swift | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/phpmon/Common/Core/Constants.swift b/phpmon/Common/Core/Constants.swift index 29add14..531cbc5 100644 --- a/phpmon/Common/Core/Constants.swift +++ b/phpmon/Common/Core/Constants.swift @@ -111,6 +111,10 @@ struct Constants { static let FrequentlyAskedQuestions = URL( string: "https://phpmon.app/faq" )! + + static let WikiPhpUnavailable = URL( + string: "https://phpmon.app/wiki/php-unavailable" + )! static let DonationPayment = URL( string: "https://phpmon.app/sponsor/now" diff --git a/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift b/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift index e639589..46204d6 100644 --- a/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift +++ b/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift @@ -291,9 +291,7 @@ struct PhpVersionManagerView: View { .font(.system(size: 11)) .foregroundColor(.gray) HelpButton(action: { - // Show an alert that displays information about the missing formula - // and what can be done to fix this particular issue. - // Running `brew tap shivammathur/php` generally works, I think. + NSWorkspace.shared.open(Constants.Urls.WikiPhpUnavailable) }) } }