Skip to content

Commit

Permalink
Merge pull request #225 from os2display/feature/support-1328-attach-p…
Browse files Browse the repository at this point in the history
…laylists-to-slide-bugs

Fixed caching issues when adding/removing playlists from slide
  • Loading branch information
tuj authored Feb 23, 2024
2 parents 6018974 + 14c7c03 commit 1d5ff78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
## [Unreleased]

- Added fetch all to avoid removing slides when saving playlist and all slides have not been fetched.
- [#225](https://github.com/os2display/display-admin-client/pull/225)
- Fixed caching issues when adding/removing playlists from slide.
- [#223](https://github.com/os2display/display-admin-client/pull/223)
- Updated to API Platform 3
- [#222](https://github.com/os2display/display-admin-client/pull/222)
Expand Down
9 changes: 8 additions & 1 deletion src/redux/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,19 @@ generatedApi.enhanceEndpoints({
providesTags: ["Playlist"],
},
getV1PlaylistsByIdSlides: {
providesTags: ["Playlist"],
providesTags: ["Playlist", "Slide"],
},
getV1SlidesByIdPlaylists: {
providesTags: ["Playlist", "Slide"],
},
putV1PlaylistsByIdSlides: {
providesTags: ["Playlist", "Slide"],
invalidatesTags: ["Playlist", "Slide"],
},
putV1SlidesByIdPlaylists: {
providesTags: ["Playlist", "Slide"],
invalidatesTags: ["Playlist", "Slide"],
},
deleteV1PlaylistsByIdSlidesAndSlideId: {
providesTags: ["Playlist", "Slide"],
invalidatesTags: ["Playlist", "Slide"],
Expand Down

0 comments on commit 1d5ff78

Please sign in to comment.