| 
														
															@@ -1,5 +1,12 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <template> 
														 | 
														
														 | 
														
															 <template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	<modal title="Manage Station" class="manage-station-modal"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	<modal 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		:title=" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			!isOwnerOrAdmin() && station.partyMode 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				? 'Add Song to Queue' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				: 'Manage Station' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		class="manage-station-modal" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<template #body> 
														 | 
														
														 | 
														
															 		<template #body> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<div class="custom-modal-body" v-if="station && station._id"> 
														 | 
														
														 | 
														
															 			<div class="custom-modal-body" v-if="station && station._id"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<div class="left-section"> 
														 | 
														
														 | 
														
															 				<div class="left-section"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -174,7 +181,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { mapState, mapGetters, mapActions } from "vuex"; 
														 | 
														
														 | 
														
															 import { mapState, mapGetters, mapActions } from "vuex"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Toast from "toasters"; 
														 | 
														
														 | 
														
															 import Toast from "toasters"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import TabQueryHandler from "@/mixins/TabQueryHandler.vue"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Confirm from "@/components/Confirm.vue"; 
														 | 
														
														 | 
														
															 import Confirm from "@/components/Confirm.vue"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Queue from "@/components/Queue.vue"; 
														 | 
														
														 | 
														
															 import Queue from "@/components/Queue.vue"; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -197,14 +203,13 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		Search, 
														 | 
														
														 | 
														
															 		Search, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		Blacklist 
														 | 
														
														 | 
														
															 		Blacklist 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	mixins: [TabQueryHandler], 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	props: { 
														 | 
														
														 | 
														
															 	props: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		stationId: { type: String, default: "" }, 
														 | 
														
														 | 
														
															 		stationId: { type: String, default: "" }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		sector: { type: String, default: "admin" } 
														 | 
														
														 | 
														
															 		sector: { type: String, default: "admin" } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	data() { 
														 | 
														
														 | 
														
															 	data() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		return { 
														 | 
														
														 | 
														
															 		return { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			tab: "playlists" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			tab: "settings" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}; 
														 | 
														
														 | 
														
															 		}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	computed: { 
														 | 
														
														 | 
														
															 	computed: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -230,6 +235,9 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				const { station } = res.data; 
														 | 
														
														 | 
														
															 				const { station } = res.data; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.editStation(station); 
														 | 
														
														 | 
														
															 				this.editStation(station); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				if (!this.isOwnerOrAdmin() && this.station.partyMode) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					this.tab = "search"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				const currentSong = res.data.station.currentSong 
														 | 
														
														 | 
														
															 				const currentSong = res.data.station.currentSong 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					? res.data.station.currentSong 
														 | 
														
														 | 
														
															 					? res.data.station.currentSong 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					: {}; 
														 | 
														
														 | 
														
															 					: {}; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -305,6 +313,9 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		this.clearStation(); 
														 | 
														
														 | 
														
															 		this.clearStation(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	methods: { 
														 | 
														
														 | 
														
															 	methods: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		showTab(tab) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.tab = tab; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		isOwner() { 
														 | 
														
														 | 
														
															 		isOwner() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return this.loggedIn && this.userId === this.station.owner; 
														 | 
														
														 | 
														
															 			return this.loggedIn && this.userId === this.station.owner; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 |