mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-25 03:19:55 +01:00
Trigger UI refresh on media annotation events: star, setRating and scrobble
This commit is contained in:
parent
2afb2db7ef
commit
cefc939909
8 changed files with 33 additions and 13 deletions
|
|
@ -23,6 +23,7 @@ import {
|
|||
RatingField,
|
||||
QualityInfo,
|
||||
useSelectedFields,
|
||||
useResourceRefresh,
|
||||
} from '../common'
|
||||
import { AddToPlaylistDialog } from '../dialogs'
|
||||
import config from '../config'
|
||||
|
|
@ -88,6 +89,7 @@ const AlbumSongs = (props) => {
|
|||
const classes = useStyles({ isDesktop })
|
||||
const dispatch = useDispatch()
|
||||
const version = useVersion()
|
||||
useResourceRefresh('song', 'album')
|
||||
|
||||
const toggleableFields = useMemo(() => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import {
|
|||
SongTitleField,
|
||||
QualityInfo,
|
||||
useSelectedFields,
|
||||
useResourceRefresh,
|
||||
} from '../common'
|
||||
import { AddToPlaylistDialog } from '../dialogs'
|
||||
import { AlbumLinkField } from '../song/AlbumLinkField'
|
||||
|
|
@ -91,6 +92,7 @@ const PlaylistSongs = ({ playlistId, readOnly, actions, ...props }) => {
|
|||
const refresh = useRefresh()
|
||||
const notify = useNotify()
|
||||
const version = useVersion()
|
||||
useResourceRefresh('song', 'playlist')
|
||||
|
||||
const onAddToPlaylist = useCallback(
|
||||
(pls) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue