mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Show server host or "WriteFreely" in CollectionListView per login state
This commit is contained in:
parent
7ae7c57442
commit
83acb6e832
@ -27,12 +27,14 @@ struct CollectionListView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Collections")
|
||||
.navigationTitle(
|
||||
model.account.isLoggedIn ? "\(URL(string: model.account.server)?.host ?? "WriteFreely")" : "WriteFreely"
|
||||
)
|
||||
.listStyle(SidebarListStyle())
|
||||
}
|
||||
}
|
||||
|
||||
struct CollectionListView_Previews: PreviewProvider {
|
||||
struct CollectionListView_LoggedOutPreviews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
let context = LocalStorageManager.persistentContainer.viewContext
|
||||
let model = WriteFreelyModel()
|
||||
|
Loading…
Reference in New Issue
Block a user