mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-27 08:35:58 +03:00
[PR #82] [MERGED] Lay foundation for indicating if a track is saved #597
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Rigellute/spotify-tui/pull/82
Author: @Rigellute
Created: 10/19/2019
Status: ✅ Merged
Merged: 10/20/2019
Merged by: @Rigellute
Base:
master← Head:liked-songs📝 Commits (1)
0410ba9Lay foundation for indicating if a track is saved📊 Changes
3 files changed (+45 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
src/app.rs(+34 -1)📝
src/ui/mod.rs(+10 -1)📄 Description
This commit will show if the currently playing track is saved or not.
The idea here is to build a HashSet of saved track ids, to which UI components can simply look at to see if the track is saved or not.
As we fetch tracks around the app, we need to make an additional request to see if any are liked.
So it should be pretty straightforward from here to add this to other views.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.