Use post id for template texts

This commit is contained in:
Christoph Hagen 2025-01-12 21:23:27 +01:00
parent 0beadc2ec8
commit a5c692cb09

View File

@ -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()