mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Conform to similar test as iOS app for showing server reload UI
This commit is contained in:
parent
486b2ce0fe
commit
2078eb7199
@ -36,8 +36,8 @@ struct PostEditorView: View {
|
||||
}
|
||||
}
|
||||
.onChange(of: post.hasNewerRemoteCopy, perform: { _ in
|
||||
if post.status == PostStatus.edited.rawValue && !post.hasNewerRemoteCopy {
|
||||
post.status = PostStatus.published.rawValue
|
||||
if !post.hasNewerRemoteCopy {
|
||||
self.updatingFromServer = true
|
||||
}
|
||||
})
|
||||
.onDisappear(perform: {
|
||||
|
Loading…
Reference in New Issue
Block a user