fix(settings): show offline hint on Passkeys, clearer API key web-only message

Passkeys was the only implemented section missing the standard offline
banner. Reworded the API key create/delete popup to state plainly it's
only supported on Outline's web version, matching Passkeys' own phrasing
style instead of the more roundabout original wording.
This commit is contained in:
2026-08-18 16:54:45 +01:00
parent 64e970fc92
commit 78e3566a8e
+5 -1
View File
@@ -743,6 +743,10 @@ struct SettingsView: View {
.foregroundStyle(.secondary)
.frame(maxWidth: 480, alignment: .leading)
if !isEffectivelyOnline {
offlineSettingsHint
}
Label("This setting can only be changed from the web version of Outline.", systemImage: "lock.fill")
.font(.callout)
.foregroundStyle(.secondary)
@@ -817,7 +821,7 @@ struct SettingsView: View {
.alert("Manage API Keys on the Web", isPresented: $isShowingApiKeyWebOnlyNotice) {
Button("OK") {}
} message: {
Text("Creating and deleting personal API keys currently requires Outline's web app, the same way Passkeys does — this app can only display your existing keys for now. We may add this here in the future if Outline supports it or we add the right kind of authentication.")
Text("Creating and deleting personal API keys is only supported on the web version of Outline. This app can display your existing keys, but not create or delete them.")
}
}