try adding playlists list to context menu - unsuccsessfully

This commit is contained in:
geoffrey45
2022-03-25 20:51:22 +03:00
parent 642c524a08
commit e2544dbbdc
21 changed files with 394 additions and 75 deletions
+27
View File
@@ -0,0 +1,27 @@
import { defineStore } from "pinia";
enum ModalOptions {
newPlaylist = "newPlaylist",
editPlaylist = "editPlaylist",
}
export default defineStore("newModal", {
state: () => ({
title: "",
options: ModalOptions,
component: "",
visible: false,
}),
actions: {
showModal(modalOption: string) {
this.component = modalOption;
this.visible = true;
},
hideModal() {
this.visible = false;
},
setTitle(new_title: string) {
this.title = new_title;
},
},
});