diff options
| author | Fuwn <[email protected]> | 2025-03-03 19:43:35 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-03-03 19:43:35 -0800 |
| commit | e56c662137ca3e3945aed174c90062601df092f5 (patch) | |
| tree | 8f459760d0bcbe16cbd18f2863bfd063a08ca974 /Sora/Views | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-e56c662137ca3e3945aed174c90062601df092f5.tar.xz sora-testing-e56c662137ca3e3945aed174c90062601df092f5.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views')
| -rw-r--r-- | Sora/Views/Bookmarks/BookmarksAddToView.swift | 7 | ||||
| -rw-r--r-- | Sora/Views/Bookmarks/BookmarksView.swift (renamed from Sora/Views/BookmarksView.swift) | 0 | ||||
| -rw-r--r-- | Sora/Views/Generic/GenericListView.swift | 8 | ||||
| -rw-r--r-- | Sora/Views/Post/Details/PostDetailsTagsView.swift | 8 |
4 files changed, 21 insertions, 2 deletions
diff --git a/Sora/Views/Bookmarks/BookmarksAddToView.swift b/Sora/Views/Bookmarks/BookmarksAddToView.swift new file mode 100644 index 0000000..3c8ad68 --- /dev/null +++ b/Sora/Views/Bookmarks/BookmarksAddToView.swift @@ -0,0 +1,7 @@ +import SwiftUI + +struct BookmarksAddToView: View { + var body: some View { + Text("BookmarksAddToView") + } +} diff --git a/Sora/Views/BookmarksView.swift b/Sora/Views/Bookmarks/BookmarksView.swift index fa7734e..fa7734e 100644 --- a/Sora/Views/BookmarksView.swift +++ b/Sora/Views/Bookmarks/BookmarksView.swift diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift index 6ac9030..ee0b09e 100644 --- a/Sora/Views/Generic/GenericListView.swift +++ b/Sora/Views/Generic/GenericListView.swift @@ -106,7 +106,13 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View { manager.performSearch(settings: settings) isPresented.toggle() }) { - Label("Add to current search query", systemImage: "plus") + Label("Add to Search", systemImage: "plus") + } + + Button(action: { + settings.addBookmark(provider: settings.preferredBooru, tags: item.tags) + }) { + Label("Bookmark Tag\(item.tags.count == 1 ? "" : "s")", systemImage: "bookmark") } } #if os(macOS) diff --git a/Sora/Views/Post/Details/PostDetailsTagsView.swift b/Sora/Views/Post/Details/PostDetailsTagsView.swift index de25051..e2304a7 100644 --- a/Sora/Views/Post/Details/PostDetailsTagsView.swift +++ b/Sora/Views/Post/Details/PostDetailsTagsView.swift @@ -22,7 +22,13 @@ struct PostDetailsTagsView: View { search() }) { - Label("Add to current search query", systemImage: "plus") + Label("Add to Search", systemImage: "plus") + } + + Button(action: { + settings.addBookmark(provider: settings.preferredBooru, tags: [tag]) + }) { + Label("Bookmark Tag", systemImage: "bookmark") } } } |