Adds patch button for the right user only

multistore
Laurent 1 year ago
parent 9e8fe04633
commit e65eef2b1c
  1. 11
      PadelClub/Views/Navigation/Toolbox/ToolboxView.swift

@ -20,10 +20,13 @@ struct ToolboxView: View {
Section { Section {
Text("Version de l'application").badge(PadelClubApp.appVersion) Text("Version de l'application").badge(PadelClubApp.appVersion)
SupportButtonView(contentIsUnavailable: false) SupportButtonView(contentIsUnavailable: false)
Button {
Patcher.applyIfNeeded() if Store.main.userId == "94f45ed2-8938-4c32-a4b6-e4525073dd33" {
} label: { Button {
Text("Patch") Patcher.applyIfNeeded()
} label: {
Text("Patch")
}
} }
} }

Loading…
Cancel
Save