mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-13 05:38:47 +01:00
The Refresh Metadata action was only reachable from the Album and Artist context menus, so it could not be triggered from AlbumShow or ArtistShow. This adds an icon-only button, with a tooltip, to the action toolbar on both detail pages. Like the menu entry, it is only rendered for admins. The button is built on react-admin's Button rather than a plain IconButton: the surrounding toolbars use the former, so the theme colour and the icon-only swap at the xs breakpoint are inherited instead of restated. The dataProvider call and its two notifications move into a new useRefreshMetadata hook, which ContextMenus now shares, keeping a single copy of that logic. |
||
|---|---|---|
| .. | ||
| actions.js | ||
| ArtistActions.jsx | ||
| ArtistActions.test.jsx | ||
| ArtistExternalLink.jsx | ||
| ArtistExternalLink.test.jsx | ||
| ArtistList.jsx | ||
| ArtistListActions.jsx | ||
| ArtistShow.jsx | ||
| ArtistShow.test.jsx | ||
| ArtistSimpleList.jsx | ||
| DesktopArtistDetails.jsx | ||
| index.jsx | ||
| MobileArtistDetails.jsx | ||