diff --git a/src/components/ModalAddTrackToPlaylist.vue b/src/components/ModalAddTrackToPlaylist.vue index 5e35dc8..b8b5bf6 100644 --- a/src/components/ModalAddTrackToPlaylist.vue +++ b/src/components/ModalAddTrackToPlaylist.vue @@ -32,6 +32,7 @@ import { mapActions, mapMutations, mapState } from 'vuex'; import Modal from '@/components/Modal.vue'; import { userPlaylist } from '@/api/user'; import { addOrRemoveTrackFromPlaylist } from '@/api/playlist'; +import { disableScrolling, enableScrolling } from '@/utils/ui'; export default { name: 'ModalAddTrackToPlaylist', @@ -55,6 +56,11 @@ export default { key: 'show', value, }); + if (value) { + disableScrolling(); + } else { + enableScrolling(); + } }, }, ownPlaylists() { diff --git a/src/components/ModalNewPlaylist.vue b/src/components/ModalNewPlaylist.vue index 6f6b5cf..7530808 100644 --- a/src/components/ModalNewPlaylist.vue +++ b/src/components/ModalNewPlaylist.vue @@ -32,6 +32,7 @@ import Modal from '@/components/Modal.vue'; import { mapMutations, mapState } from 'vuex'; import { createPlaylist, addOrRemoveTrackFromPlaylist } from '@/api/playlist'; +import { disableScrolling, enableScrolling } from '@/utils/ui'; export default { name: 'ModalNewPlaylist', @@ -56,6 +57,11 @@ export default { key: 'show', value, }); + if (value) { + disableScrolling(); + } else { + enableScrolling(); + } }, }, }, diff --git a/src/electron/ipcRenderer.js b/src/electron/ipcRenderer.js index dbc1da2..da3ccb5 100644 --- a/src/electron/ipcRenderer.js +++ b/src/electron/ipcRenderer.js @@ -20,6 +20,9 @@ export function ipcRenderer(vueInstance) { ipcRenderer.on('changeRouteTo', (event, path) => { self.$router.push(path); + if (store.state.showLyrics) { + store.commit('toggleLyrics'); + } }); ipcRenderer.on('search', () => { diff --git a/src/views/album.vue b/src/views/album.vue index f2cceee..251e861 100644 --- a/src/views/album.vue +++ b/src/views/album.vue @@ -38,7 +38,7 @@ >, {{ albumTime | formatTime('Human') }} -