Swap order of share and publish buttons in toolbar

This commit is contained in:
Angelo Stavrow 2020-12-01 10:01:56 -05:00
parent 68fd0c91e7
commit 43088fdc44
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -8,10 +8,10 @@ struct ActivePostToolbarView: View {
HStack(spacing: 16) {
PostEditorStatusToolbarView(post: activePost)
HStack(spacing: 4) {
Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") })
.disabled(activePost.body.isEmpty || activePost.status == PostStatus.published.rawValue)
Button(action: {}, label: { Image(systemName: "square.and.arrow.up") })
.disabled(activePost.status == PostStatus.local.rawValue)
Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") })
.disabled(activePost.body.isEmpty || activePost.status == PostStatus.published.rawValue)
}
}
}