Use post id for template texts
This commit is contained in:
parent
0beadc2ec8
commit
a5c692cb09
@ -72,8 +72,8 @@ struct AddPostView: View {
|
|||||||
startDate: .now,
|
startDate: .now,
|
||||||
endDate: nil,
|
endDate: nil,
|
||||||
tags: [],
|
tags: [],
|
||||||
german: .init(content: content, title: "Titel", text: "Text"),
|
german: .init(content: content, title: newPostId, text: ""),
|
||||||
english: .init(content: content, title: "Title", text: "Text"))
|
english: .init(content: content, title: newPostId, text: ""))
|
||||||
content.posts.insert(post, at: 0)
|
content.posts.insert(post, at: 0)
|
||||||
selectedPost = post
|
selectedPost = post
|
||||||
dismissSheet()
|
dismissSheet()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user