Add Get Info to Sidebar context menu

This commit is contained in:
Maurice Parker 2020-07-04 14:13:12 -05:00
parent 3f7401994d
commit 49c86bd578
2 changed files with 13 additions and 4 deletions

View File

@ -80,6 +80,10 @@ struct AppAssets {
return RSImage(named: "FaviconTemplateImage")!
}()
static var getInfoImage: Image = {
return Image(systemName: "info.circle")
}()
static var renameImage: Image = {
return Image(systemName: "textformat")
}()

View File

@ -37,6 +37,10 @@ struct SidebarItemView: View {
@ViewBuilder var menuItems: some View {
if sidebarItem.representedType == .account {
Button(action: {}) {
Text("Get Info")
AppAssets.getInfoImage
}
Button(action: {}) {
Text("Mark All As Read")
AppAssets.markAllAsReadImage
@ -51,18 +55,19 @@ struct SidebarItemView: View {
}
if sidebarItem.representedType == .webFeed {
Button(action: {}) {
Text("Get Info")
AppAssets.getInfoImage
}
Button(action: {}) {
Text("Mark All As Read")
AppAssets.markAllAsReadImage
}
Divider()
Button(action: {
}) {
Button(action: {}) {
Text("Open Home Page")
AppAssets.openInBrowserImage
}
Divider()
Button(action: {}) {
Text("Copy Feed URL")
AppAssets.copyImage