Disable publish button on published posts or if logged out

This commit is contained in:
Angelo Stavrow 2020-09-16 16:07:47 -04:00
parent 8695a8fe4a
commit f555d96bcd
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

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