mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Only show logged-in requirement if logged out
This commit is contained in:
parent
4ec81ccfbf
commit
554ca83014
@ -13,7 +13,7 @@ struct ActivePostToolbarView: View {
|
|||||||
.help("Copy the post's URL to your Mac's pasteboard.")
|
.help("Copy the post's URL to your Mac's pasteboard.")
|
||||||
Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") })
|
Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") })
|
||||||
.disabled(activePost.body.isEmpty || activePost.status == PostStatus.published.rawValue)
|
.disabled(activePost.body.isEmpty || activePost.status == PostStatus.published.rawValue)
|
||||||
.help("Publish the post to the web. You must be logged in to do this.")
|
.help("Publish the post to the web.\(model.account.isLoggedIn ? "" : "You must be logged in to do this.")") // swiftlint:disable:this line_length
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user