|
@@ -46,6 +46,17 @@
|
|
|
stop
|
|
|
</i>
|
|
|
</confirm>
|
|
|
+ <confirm
|
|
|
+ v-if="isOwnerOrAdmin()"
|
|
|
+ @confirm="blacklistPlaylist(playlist._id)"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="material-icons stop-icon"
|
|
|
+ content="Blacklist Playlist"
|
|
|
+ v-tippy
|
|
|
+ >block</i
|
|
|
+ >
|
|
|
+ </confirm>
|
|
|
<i
|
|
|
v-if="playlist.createdBy === myUserId"
|
|
|
@click="showPlaylist(playlist._id)"
|
|
@@ -135,6 +146,17 @@
|
|
|
v-tippy
|
|
|
>play_arrow</i
|
|
|
>
|
|
|
+ <confirm
|
|
|
+ v-if="isOwnerOrAdmin()"
|
|
|
+ @confirm="blacklistPlaylist(playlist._id)"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="material-icons stop-icon"
|
|
|
+ content="Blacklist Playlist"
|
|
|
+ v-tippy
|
|
|
+ >block</i
|
|
|
+ >
|
|
|
+ </confirm>
|
|
|
<i
|
|
|
v-if="playlist.createdBy === myUserId"
|
|
|
@click="showPlaylist(playlist._id)"
|
|
@@ -233,6 +255,17 @@
|
|
|
>stop</i
|
|
|
>
|
|
|
</confirm>
|
|
|
+ <confirm
|
|
|
+ v-if="isOwnerOrAdmin()"
|
|
|
+ @confirm="blacklistPlaylist(playlist._id)"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="material-icons stop-icon"
|
|
|
+ content="Blacklist Playlist"
|
|
|
+ v-tippy
|
|
|
+ >block</i
|
|
|
+ >
|
|
|
+ </confirm>
|
|
|
<i
|
|
|
@click="showPlaylist(playlist._id)"
|
|
|
class="material-icons edit-icon"
|
|
@@ -473,6 +506,19 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ blacklistPlaylist(id) {
|
|
|
+ if (this.isSelected(id)) {
|
|
|
+ this.deselectPlaylist(id);
|
|
|
+ }
|
|
|
+ this.socket.dispatch(
|
|
|
+ "stations.excludePlaylist",
|
|
|
+ this.station._id,
|
|
|
+ id,
|
|
|
+ res => {
|
|
|
+ new Toast(res.message);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
...mapActions("station", ["updatePrivatePlaylistQueueSelected"]),
|
|
|
...mapActions("modalVisibility", ["openModal"]),
|
|
|
...mapActions("user/playlists", ["editPlaylist", "setPlaylists"])
|