mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add welcome modal
This commit is contained in:
+6
-1
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user