You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I asked my favourite AI assistant to add functionality to reorder items in a playlist.
It updated the following 3 files and the changes seem to work. I did not do any extensive testing.
- model.py — added reorder_plugins(ordered_names) method to the Playlist class
- playlist.py — added POST /reorder_plugins/<playlist_name> API endpoint
- playlist.html — added a ≡ drag handle on each plugin row; dragging a row saves the new order automatically to
device.json via the API (no page reload needed)
Visit http://inkypi.local/playlist — you should see the hamburger handle on each plugin row. Just drag to reorder.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I asked my favourite AI assistant to add functionality to reorder items in a playlist.
It updated the following 3 files and the changes seem to work. I did not do any extensive testing.
Beta Was this translation helpful? Give feedback.
All reactions