|
|
@@ -461,6 +461,16 @@ private struct FilteredAlbumsView: View {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if SlskdAPIClient.shared.isConfigured {
|
|
|
+ Divider()
|
|
|
+ Button {
|
|
|
+ let query = [album.artist, album.title].compactMap { $0 }.joined(separator: " - ")
|
|
|
+ navStack.append(.search(query: query))
|
|
|
+ } label: {
|
|
|
+ Label("Find on Soulseek", systemImage: "magnifyingglass")
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.draggable(album)
|
|
|
}
|
|
|
@@ -586,6 +596,16 @@ private struct CategoryDetailView: View {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if SlskdAPIClient.shared.isConfigured {
|
|
|
+ Divider()
|
|
|
+ Button {
|
|
|
+ let query = [album.artist, album.title].compactMap { $0 }.joined(separator: " - ")
|
|
|
+ navStack.append(.search(query: query))
|
|
|
+ } label: {
|
|
|
+ Label("Find on Soulseek", systemImage: "magnifyingglass")
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.draggable(album)
|
|
|
}
|
|
|
@@ -868,6 +888,16 @@ private struct AlbumDetailView: View {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if SlskdAPIClient.shared.isConfigured {
|
|
|
+ Divider()
|
|
|
+ Button {
|
|
|
+ let query = [track.artist, track.title].compactMap { $0 }.joined(separator: " - ")
|
|
|
+ navStack.append(.search(query: query))
|
|
|
+ } label: {
|
|
|
+ Label("Find on Soulseek", systemImage: "magnifyingglass")
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|