Sfoglia il codice sorgente

Songs can now be removed from queue on official stations

Owen Diffey 4 anni fa
parent
commit
90e84b4d92

+ 0 - 1
backend/logic/actions/stations.js

@@ -2878,7 +2878,6 @@ export default {
 
 				(station, next) => {
 					if (!station) return next("Station not found.");
-					if (station.type !== "community") return next("Station is not a community station.");
 
 					return async.each(
 						station.queue,

+ 1 - 6
frontend/src/pages/Station/components/Sidebar/Queue/QueueItem.vue

@@ -58,7 +58,6 @@
 				<i
 					v-if="
 						$parent.loggedIn &&
-							!song.simpleSong &&
 							song.likes !== -1 &&
 							song.dislikes !== -1
 					"
@@ -75,7 +74,6 @@
 				<i
 					v-if="
 						$parent.isAdminOnly() &&
-							!song.simpleSong &&
 							song.likes !== -1 &&
 							song.dislikes !== -1
 					"
@@ -85,10 +83,7 @@
 					edit
 				</i>
 				<i
-					v-if="
-						station.type === 'community' &&
-							($parent.isOwnerOnly() || $parent.isAdminOnly())
-					"
+					v-if="$parent.isOwnerOnly() || $parent.isAdminOnly()"
 					class="material-icons delete-icon"
 					@click="$parent.removeFromQueue(song.songId)"
 					>delete_forever</i