Browse Source

Fixed issue where non-logged in users could see add song to queue button in the queue sidebar.

KrisVos130 8 years ago
parent
commit
762b261dae
1 changed files with 2 additions and 1 deletions
  1. 2 1
      frontend/components/Sidebars/SongsList.vue

+ 2 - 1
frontend/components/Sidebars/SongsList.vue

@@ -23,6 +23,7 @@
 					{{ $parent.formatTime($parent.currentSong.duration) }}
 				</div>
 			</article>
+			<p v-if="$parent.noSong" class="center">There is currently no song playing.</p>
 
 			<article class="media" v-for='song in $parent.songsList'>
 				<div class="media-content">
@@ -38,7 +39,7 @@
 					{{ $parent.$parent.formatTime(song.duration) }}
 				</div>
 			</article>
-			<a class='button add-to-queue' href='#' @click='$parent.modals.addSongToQueue = !$parent.modals.addSongToQueue' v-if="$parent.type === 'community'">Add Song to Queue</a>
+			<a class='button add-to-queue' href='#' @click='$parent.modals.addSongToQueue = !$parent.modals.addSongToQueue' v-if="$parent.type === 'community' && $parent.$parent.loggedIn">Add Song to Queue</a>
 		</div>
 	</div>
 </template>