Browse Source

fix(Station page): queue items can only be removed on community stations

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 years ago
parent
commit
da22fc1338

+ 0 - 1
frontend/src/pages/Station/components/Sidebar/MyPlaylists.vue

@@ -149,7 +149,6 @@ export default {
 
 #my-playlists {
 	background-color: #fff;
-	border: 1px solid $light-grey-2;
 	margin-bottom: 20px;
 	padding: 10px;
 	border-radius: 0 0 5px 5px;

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

@@ -49,7 +49,10 @@
 				{{ utils.formatTime(song.duration) }}
 			</p>
 			<i
-				v-if="$parent.isOwnerOnly() || $parent.isAdminOnly()"
+				v-if="
+					station.type === 'community' &&
+						($parent.isOwnerOnly() || $parent.isAdminOnly())
+				"
 				class="material-icons"
 				id="remove-queue-item"
 				@click="$parent.removeFromQueue(song.songId)"

+ 0 - 1
frontend/src/pages/Station/components/Sidebar/Users.vue

@@ -66,7 +66,6 @@ export default {
 
 #users {
 	background-color: #fff;
-	border: 1px solid $light-grey-2;
 	margin-bottom: 20px;
 	padding: 10px;
 	border-radius: 0 0 5px 5px;