Add Get Info to Sidebar context menu
This commit is contained in:
parent
3f7401994d
commit
49c86bd578
|
@ -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")
|
||||
}()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue