mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 20:56:19 -08:00
fix(xtream): update changes after saving
This commit is contained in:
1 parent
e06e0d558a
commit
86ad06624e
2 files changed
+24
-3
No files matched your search
@@ -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 }
|
||||
: {}),
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user