mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Remove unimplemented menu commands
This commit is contained in:
parent
96472c2604
commit
c4e9089e76
@ -3,22 +3,9 @@ import SwiftUI
|
|||||||
struct PostCommands: Commands {
|
struct PostCommands: Commands {
|
||||||
@ObservedObject var model: WriteFreelyModel
|
@ObservedObject var model: WriteFreelyModel
|
||||||
|
|
||||||
@FetchRequest(
|
|
||||||
entity: WFACollection.entity(),
|
|
||||||
sortDescriptors: [NSSortDescriptor(keyPath: \WFACollection.title, ascending: true)]
|
|
||||||
) var collections: FetchedResults<WFACollection>
|
|
||||||
|
|
||||||
var body: some Commands {
|
var body: some Commands {
|
||||||
CommandMenu("Post") {
|
CommandMenu("Post") {
|
||||||
Group {
|
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") })
|
Button(action: sendPostUrlToPasteboard, label: { Text("Copy Link To Published Post") })
|
||||||
.disabled(model.selectedPost?.status == PostStatus.local.rawValue)
|
.disabled(model.selectedPost?.status == PostStatus.local.rawValue)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user