mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-06 19:40:08 +02:00
✨ Add button that redirects to wiki
This commit is contained in:
@ -111,6 +111,10 @@ struct Constants {
|
|||||||
static let FrequentlyAskedQuestions = URL(
|
static let FrequentlyAskedQuestions = URL(
|
||||||
string: "https://phpmon.app/faq"
|
string: "https://phpmon.app/faq"
|
||||||
)!
|
)!
|
||||||
|
|
||||||
|
static let WikiPhpUnavailable = URL(
|
||||||
|
string: "https://phpmon.app/wiki/php-unavailable"
|
||||||
|
)!
|
||||||
|
|
||||||
static let DonationPayment = URL(
|
static let DonationPayment = URL(
|
||||||
string: "https://phpmon.app/sponsor/now"
|
string: "https://phpmon.app/sponsor/now"
|
||||||
|
@ -291,9 +291,7 @@ struct PhpVersionManagerView: View {
|
|||||||
.font(.system(size: 11))
|
.font(.system(size: 11))
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
HelpButton(action: {
|
HelpButton(action: {
|
||||||
// Show an alert that displays information about the missing formula
|
NSWorkspace.shared.open(Constants.Urls.WikiPhpUnavailable)
|
||||||
// and what can be done to fix this particular issue.
|
|
||||||
// Running `brew tap shivammathur/php` generally works, I think.
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user