fix(xtream): update changes after saving

This commit is contained in:
4gray committed 2023-08-06 22:52:16 +02:00
1 parent e06e0d558a
commit 86ad06624e
2 files changed
+24 -3

No files matched your search

+15
View File
@@ -80,6 +80,21 @@ export class PlaylistsService {
title: updatedPlaylist.title,
autoRefresh: updatedPlaylist.autoRefresh,
userAgent: updatedPlaylist.userAgent,
...(updatedPlaylist.serverUrl !== null
? { serverUrl: updatedPlaylist.serverUrl }
: {}),
...(updatedPlaylist.portalUrl !== null
? { portalUrl: updatedPlaylist.portalUrl }
: {}),
...(updatedPlaylist.macAddress !== null
? { macAddress: updatedPlaylist.macAddress }
: {}),
...(updatedPlaylist.username !== null
? { username: updatedPlaylist.username }
: {}),
...(updatedPlaylist.password !== null
? { password: updatedPlaylist.password }
: {}),
})
)
);
+9 -3
View File
@@ -181,15 +181,21 @@ export const playlistReducer = createReducer(
title: action.playlist.title,
autoRefresh: action.playlist.autoRefresh || false,
userAgent: action.playlist.userAgent,
...(action.playlist.serverUrl
...(action.playlist.serverUrl !== null
? { serverUrl: action.playlist.serverUrl }
: {}),
...(action.playlist.username
...(action.playlist.username !== null
? { username: action.playlist.username }
: {}),
...(action.playlist.password
...(action.playlist.password !== null
? { password: action.playlist.password }
: {}),
...(action.playlist.macAddress !== null
? { macAddress: action.playlist.macAddress }
: {}),
...(action.playlist.portalUrl !== null
? { portalUrl: action.playlist.portalUrl }
: {}),
},
},
state.playlists