add comments to some store functions

- some refactors to modals
This commit is contained in:
geoffrey45
2022-05-13 20:50:58 +03:00
parent 2e274dac1d
commit 8b62fe78fa
12 changed files with 106 additions and 81 deletions
+6 -2
View File
@@ -19,9 +19,13 @@ export default defineStore("newModal", {
this.component = modalOption;
this.visible = true;
},
showNewPlaylistModal(track: Track) {
showNewPlaylistModal(track?: Track) {
this.component = ModalOptions.newPlaylist;
this.props.track = track;
if (track) {
this.props.track = track;
}
this.visible = true;
},
showEditPlaylistModal(playlist: Playlist) {