Add draft indicator, filter drafts, show issue count
This commit is contained in:
@ -31,7 +31,13 @@ struct PostListView: View {
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.padding(.horizontal, 8)
|
||||
List(filteredPosts, selection: $selectedPost) { post in
|
||||
Text(post.title(in: language)).tag(post)
|
||||
HStack {
|
||||
Text(post.title(in: language))
|
||||
Spacer()
|
||||
if post.isDraft {
|
||||
DraftIndicator()
|
||||
}
|
||||
}.tag(post)
|
||||
}
|
||||
}.onAppear {
|
||||
if selectedPost == nil {
|
||||
|
Reference in New Issue
Block a user