Use 'Anonymous' instead of 'Drafts' for Write.as accounts

This commit is contained in:
Angelo Stavrow 2020-10-08 16:24:35 -04:00
parent 5a488a2a70
commit 987be06d7f
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -144,7 +144,9 @@ struct PostEditorView: View {
} else {
self.model.isPresentingSettingsView = true
}
}, label: { Text(" Drafts") })
}, label: {
Text(" \(model.account.server == "https://write.as" ? "Anonymous" : "Drafts")")
})
ForEach(collections) { collection in
Button(action: {
if model.account.isLoggedIn {
@ -192,7 +194,9 @@ struct PostEditorView: View {
Section(header: Text("Move To Collection")) {
Label("Move to:", systemImage: "arrowshape.zigzag.right")
Picker(selection: $selectedCollection, label: Text("Move to…")) {
Text(" Drafts").tag(nil as WFACollection?)
Text(
" \(model.account.server == "https://write.as" ? "Anonymous" : "Drafts")"
).tag(nil as WFACollection?)
ForEach(collections) { collection in
Text(" \(collection.title)").tag(collection as WFACollection?)
}