add welcome modal

This commit is contained in:
geoffrey45 committed 2022-08-04 17:10:53 +03:00
1 parent ecf6874268
commit 77162ba21b
4 files changed
+138 -8

No files matched your search

+6 -1
View File
@@ -4,6 +4,7 @@ import { Playlist, Track } from "../interfaces";
enum ModalOptions {
newPlaylist = "newPlaylist",
updatePlaylist = "editPlaylist",
welcome = "welcome",
}
export default defineStore("newModal", {
@@ -25,7 +26,7 @@ export default defineStore("newModal", {
if (track) {
this.props.track = track;
}
this.visible = true;
},
showEditPlaylistModal(playlist: Playlist) {
@@ -33,6 +34,10 @@ export default defineStore("newModal", {
this.props = playlist;
this.visible = true;
},
showWelcomeModal() {
this.component = ModalOptions.welcome;
this.visible = true;
},
hideModal() {
this.visible = false;
},