| 
														
															@@ -23,7 +23,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					</a> 
														 | 
														
														 | 
														
															 					</a> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				</div> 
														 | 
														
														 | 
														
															 				</div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<router-link 
														 | 
														
														 | 
														
															 				<router-link 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					v-for="(station, index) in stations" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					v-for="(station, index) in filteredStations()" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					:key="index" 
														 | 
														
														 | 
														
															 					:key="index" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					:to="{ 
														 | 
														
														 | 
														
															 					:to="{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						name: 'station', 
														 | 
														
														 | 
														
															 						name: 'station', 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -131,7 +131,13 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					</div> 
														 | 
														
														 | 
														
															 					</div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					<div class="bottomBar"> 
														 | 
														
														 | 
														
															 					<div class="bottomBar"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						<i 
														 | 
														
														 | 
														
															 						<i 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-							v-if="station.currentSong.title" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							v-if="station.paused" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							class="material-icons" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							title="Station Paused" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							>pause</i 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						<i 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							v-else-if="station.currentSong.title" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							class="material-icons" 
														 | 
														
														 | 
														
															 							class="material-icons" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							>music_note</i 
														 | 
														
														 | 
														
															 							>music_note</i 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						> 
														 | 
														
														 | 
														
															 						> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -184,14 +190,6 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}; 
														 | 
														
														 | 
														
															 		}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	computed: { 
														 | 
														
														 | 
														
															 	computed: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		filteredStations() { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			return this.stations.filter( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				station => 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					JSON.stringify(Object.values(station)).indexOf( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						this.searchQuery 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					) !== -1 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		}, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		...mapState({ 
														 | 
														
														 | 
														
															 		...mapState({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			loggedIn: state => state.user.auth.loggedIn, 
														 | 
														
														 | 
														
															 			loggedIn: state => state.user.auth.loggedIn, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			userId: state => state.user.auth.userId, 
														 | 
														
														 | 
														
															 			userId: state => state.user.auth.userId, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -280,6 +278,25 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			}); 
														 | 
														
														 | 
														
															 			}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.socket.emit("apis.joinRoom", "home", () => {}); 
														 | 
														
														 | 
														
															 			this.socket.emit("apis.joinRoom", "home", () => {}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		filteredStations() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			const favoriteStations = []; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			const otherStations = []; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.stations 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				.filter( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					station => 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						JSON.stringify(Object.values(station)).indexOf( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							this.searchQuery 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						) !== -1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				.forEach(station => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (this.favoriteStations.indexOf(station._id) !== -1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						favoriteStations.push(station); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						otherStations.push(station); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			return [...favoriteStations, ...otherStations]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		isOwner(station) { 
														 | 
														
														 | 
														
															 		isOwner(station) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return station.owner === this.userId; 
														 | 
														
														 | 
														
															 			return station.owner === this.userId; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 |