summaryrefslogtreecommitdiff
path: root/Sora/Views/BookmarksView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-20 20:12:24 -0800
committerFuwn <[email protected]>2025-02-20 20:12:24 -0800
commit3a53a62f9c1c505366fe35ad745746d55d381dc8 (patch)
tree9e9bee6bcb056ce5cbf9a34771f5c76da2bd7e64 /Sora/Views/BookmarksView.swift
parentfeat: Development commit (diff)
downloadsora-testing-3a53a62f9c1c505366fe35ad745746d55d381dc8.tar.xz
sora-testing-3a53a62f9c1c505366fe35ad745746d55d381dc8.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/BookmarksView.swift')
-rw-r--r--Sora/Views/BookmarksView.swift7
1 files changed, 5 insertions, 2 deletions
diff --git a/Sora/Views/BookmarksView.swift b/Sora/Views/BookmarksView.swift
index d1c5776..5d27b6a 100644
--- a/Sora/Views/BookmarksView.swift
+++ b/Sora/Views/BookmarksView.swift
@@ -34,17 +34,20 @@ struct BookmarksView: View {
ForEach(filteredBookmarks, id: \.self) { bookmark in
Button(action: {
+ settings.preferredBooru = bookmark.provider
manager.searchText = bookmark.tags.joined(separator: " ")
- manager.performSearch()
selectedTab = 0
}) {
+ let badgeView = Text(bookmark.provider.rawValue.capitalized)
+
HStack {
Text(bookmark.tags.joined(separator: ", "))
+ .foregroundStyle(.primary)
Text(bookmark.createdAt.formatted())
.foregroundColor(.secondary)
- .font(.caption)
}
+ .badge(badgeView)
}
}
.onDelete(perform: settings.removeBookmark)