Merge RSS feed modals into a universal one

This commit is contained in:
advplyr 2022-12-31 15:26:37 -06:00
parent ca6765c8e7
commit a364fe5031
6 changed files with 46 additions and 193 deletions

View file

@ -8,9 +8,11 @@ export const state = () => ({
showEditPlaylistModal: false,
showEditPodcastEpisode: false,
showViewPodcastEpisodeModal: false,
showRSSFeedOpenCloseModal: false,
showConfirmPrompt: false,
confirmPromptOptions: null,
showEditAuthorModal: false,
rssFeedEntity: null,
selectedEpisode: null,
selectedPlaylistItems: null,
selectedPlaylist: null,
@ -99,6 +101,13 @@ export const mutations = {
setShowViewPodcastEpisodeModal(state, val) {
state.showViewPodcastEpisodeModal = val
},
setShowRSSFeedOpenCloseModal(state, val) {
state.showRSSFeedOpenCloseModal = val
},
setRSSFeedOpenCloseModal(state, entity) {
state.rssFeedEntity = entity
state.showRSSFeedOpenCloseModal = true
},
setShowConfirmPrompt(state, val) {
state.showConfirmPrompt = val
},