Преглед на файлове

Songs can now be removed from queue on official stations

Owen Diffey преди 4 години
родител
ревизия
90e84b4d92
променени са 2 файла, в които са добавени 1 реда и са изтрити 7 реда
  1. 0 1
      backend/logic/actions/stations.js
  2. 1 6
      frontend/src/pages/Station/components/Sidebar/Queue/QueueItem.vue

+ 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