mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-06 03:20:09 +02:00
✨ Add button that redirects to wiki
This commit is contained in:
@ -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"
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user