From c4e9089e76b8df026a3396927d19507cd575b7fc Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Thu, 17 Dec 2020 11:15:23 -0500 Subject: [PATCH] Remove unimplemented menu commands --- macOS/Navigation/PostCommands.swift | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/macOS/Navigation/PostCommands.swift b/macOS/Navigation/PostCommands.swift index 8b81d07..2b2d45a 100644 --- a/macOS/Navigation/PostCommands.swift +++ b/macOS/Navigation/PostCommands.swift @@ -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 - 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) }