Remove unimplemented menu commands

This commit is contained in:
Angelo Stavrow 2020-12-17 11:15:23 -05:00
parent 96472c2604
commit c4e9089e76
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -3,22 +3,9 @@ import SwiftUI
struct PostCommands: Commands {
@ObservedObject var model: WriteFreelyModel
@FetchRequest(
entity: WFACollection.entity(),
sortDescriptors: [NSSortDescriptor(keyPath: \WFACollection.title, ascending: true)]
) var collections: FetchedResults<WFACollection>
var body: some Commands {
CommandMenu("Post") {
Group {
Button("Publish…") {
print("Clicked 'Publish…' for post '\(model.selectedPost?.title ?? "untitled")'")
}
.disabled(true)
Button("Move…") {
print("Clicked 'Move…' for post '\(model.selectedPost?.title ?? "untitled")'")
}
.disabled(true)
Button(action: sendPostUrlToPasteboard, label: { Text("Copy Link To Published Post") })
.disabled(model.selectedPost?.status == PostStatus.local.rawValue)
}