From 554ca83014ff7873b23bd253e753b2def511d187 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Fri, 18 Dec 2020 10:23:52 -0500 Subject: [PATCH] Only show logged-in requirement if logged out --- macOS/Navigation/ActivePostToolbarView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macOS/Navigation/ActivePostToolbarView.swift b/macOS/Navigation/ActivePostToolbarView.swift index 2d16c41..22b02d6 100644 --- a/macOS/Navigation/ActivePostToolbarView.swift +++ b/macOS/Navigation/ActivePostToolbarView.swift @@ -13,7 +13,7 @@ struct ActivePostToolbarView: View { .help("Copy the post's URL to your Mac's pasteboard.") Button(action: { publishPost(activePost) }, label: { Image(systemName: "paperplane") }) .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 } } }