mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add button to clear app environment after self hosting
This commit is contained in:
parent
d1826be5a9
commit
82c8cf9cc3
1 changed files with 10 additions and 0 deletions
|
|
@ -90,6 +90,16 @@ struct SelfHostSettingsView: View {
|
|||
.accentColor(.blue)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Button(action: {
|
||||
AppEnvironment.setCustom(serverBaseURL: "https://api-prod.omnivore.app",
|
||||
webAppBaseURL: "https://omnivore.app",
|
||||
ttsBaseURL: "https://tts.omnivore.app")
|
||||
dataService.switchAppEnvironment(appEnvironment: AppEnvironment.prod)
|
||||
dismiss()
|
||||
}, label: {
|
||||
Text("Reset self hosting settings")
|
||||
})
|
||||
|
||||
#if os(macOS)
|
||||
Spacer()
|
||||
HStack {
|
||||
|
|
|
|||
Loading…
Reference in a new issue