add edit title context menu options

This commit is contained in:
Satindar Dhillon
2022-06-13 21:35:21 -07:00
parent bacc117cd2
commit fc01a6b7db
5 changed files with 20 additions and 0 deletions

View File

@ -230,6 +230,10 @@ import Views
viewModel: viewModel
)
.contextMenu {
Button(
action: { print("show edit modal") },
label: { Label("Edit Title/Description", systemImage: "textbox") }
)
Button(
action: { viewModel.itemUnderLabelEdit = item },
label: { Label("Edit Labels", systemImage: "tag") }

View File

@ -26,6 +26,10 @@ import Views
viewModel: viewModel
)
.contextMenu {
Button(
action: { print("show edit modal") },
label: { Label("Edit Title/Description", systemImage: "textbox") }
)
Button(
action: { viewModel.itemUnderLabelEdit = item },
label: { Label("Edit Labels", systemImage: "tag") }

View File

@ -206,6 +206,10 @@ struct LinkItemDetailView: View {
Menu(
content: {
Group {
Button(
action: { print("show edit modal") },
label: { Label("Edit Title/Description", systemImage: "textbox") }
)
Button(
action: { viewModel.handleArchiveAction(dataService: dataService) },
label: {

View File

@ -82,6 +82,10 @@ import WebKit
Menu(
content: {
Group {
Button(
action: { print("show edit modal") },
label: { Label("Edit Title/Description", systemImage: "textbox") }
)
Button(
action: { showLabelsModal = true },
label: { Label("Edit Labels", systemImage: "tag") }

View File

@ -43,6 +43,10 @@ public struct GridCard: View {
var contextMenuView: some View {
Group {
Button(
action: { print("show edit modal") },
label: { Label("Edit Title/Description", systemImage: "textbox") }
)
Button(
action: { menuActionHandler(.editLabels) },
label: { Label("Edit Labels", systemImage: "tag") }