mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Disable publish button on published posts or if logged out
This commit is contained in:
parent
8695a8fe4a
commit
f555d96bcd
@ -34,6 +34,7 @@ struct PostEditorView: View {
|
||||
}, label: {
|
||||
Image(systemName: "paperplane")
|
||||
})
|
||||
.disabled(post.status == PostStatus.published.rawValue || !model.account.isLoggedIn)
|
||||
}
|
||||
}
|
||||
.onChange(of: post.hasNewerRemoteCopy, perform: { _ in
|
||||
|
Loading…
Reference in New Issue
Block a user