1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-06 19:40:08 +02:00

📝 TODO items as warnings

This commit is contained in:
2023-11-21 22:37:28 +01:00
parent 1e4c45dcbd
commit 67a00f979a
2 changed files with 4 additions and 1 deletions

View File

@ -52,6 +52,8 @@ class RemovePhpExtensionCommand: BrewCommand {
await MainMenu.shared.refreshActiveInstallation()
#warning("Remaining config files should be cleaned up")
onProgress(.create(value: 1, title: getCommandTitle(), description: "phpman.steps.success".localized))
} else {
throw BrewCommandError(error: "phpman.steps.failure".localized, log: loggedMessages)

View File

@ -81,7 +81,7 @@ struct PhpExtensionManagerView: View {
HStack(alignment: .center, spacing: 7.0) {
VStack(alignment: .center, spacing: 0) {
HStack {
Image(systemName: bExtension.isInstalled
Image(systemName: bExtension.isInstalled
? "puzzlepiece.extension.fill"
: "puzzlepiece.extension")
.resizable()
@ -99,6 +99,7 @@ struct PhpExtensionManagerView: View {
HStack {
if bExtension.isInstalled {
Button("phpman.buttons.uninstall".localizedForSwiftUI, role: .destructive) {
#warning("Removal should ask for confirmation")
Task { await self.runCommand(
RemovePhpExtensionCommand(remove: bExtension)
) }