|
@@ -43,6 +43,14 @@
|
|
Clear and refill all genre playlists
|
|
Clear and refill all genre playlists
|
|
</button>
|
|
</button>
|
|
</confirm>
|
|
</confirm>
|
|
|
|
+ <confirm
|
|
|
|
+ placement="bottom"
|
|
|
|
+ @confirm="createMissingGenrePlaylists()"
|
|
|
|
+ >
|
|
|
|
+ <button class="button is-danger">
|
|
|
|
+ Create missing genre playlists
|
|
|
|
+ </button>
|
|
|
|
+ </confirm>
|
|
</div>
|
|
</div>
|
|
<table class="table">
|
|
<table class="table">
|
|
<thead>
|
|
<thead>
|
|
@@ -271,6 +279,20 @@ export default {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
|
|
+ createMissingGenrePlaylists() {
|
|
|
|
+ this.socket.dispatch(
|
|
|
|
+ "playlists.createMissingGenrePlaylists",
|
|
|
|
+ data => {
|
|
|
|
+ console.log(data.message);
|
|
|
|
+ if (data.status !== "success")
|
|
|
|
+ new Toast({
|
|
|
|
+ content: `Error: ${data.message}`,
|
|
|
|
+ timeout: 8000
|
|
|
|
+ });
|
|
|
|
+ else new Toast({ content: data.message, timeout: 4000 });
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ },
|
|
...mapActions("modalVisibility", ["openModal"]),
|
|
...mapActions("modalVisibility", ["openModal"]),
|
|
...mapActions("user/playlists", ["editPlaylist"]),
|
|
...mapActions("user/playlists", ["editPlaylist"]),
|
|
...mapActions("admin/playlists", [
|
|
...mapActions("admin/playlists", [
|