A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
video data update persistance without new ajax request
aminnausinc9a36b554df8
diff --git a/resources/js/stores/ContentStore.js b/resources/js/stores/ContentStore.jsindex e2f4af56..17ae0a35 100644--- a/resources/js/stores/ContentStore.js+++ b/resources/js/stores/ContentStore.js@@ -212,6 +212,14 @@ export const useContentStore = defineStore('Content', () => {stateFilteredPlaylist.value = tempList;}+ const updateVideoData = (data, index) => {+ const localIndex = Object.keys(statePlaylist.value).find((entry) => statePlaylist.value[entry].index == index);++ if(localIndex) {+ statePlaylist.value[localIndex] = {...data};+ }+ }+watch(searchQuery, playlistFilter, {immediate: false});return {@@ -220,7 +228,7 @@ export const useContentStore = defineStore('Content', () => {searchQuery, filterQuery, stateFilteredPlaylist,getRecords, createRecord, deleteRecord,getCategory, getFolder,- updateViewCount,+ updateViewCount, updateVideoData,playlistSeek, playlistFind, playlistSort};});\ No newline at end of file