Sfoglia il codice sorgente

Night mode fix first click not processing and queue open to tab change

Owen Diffey 4 anni fa
parent
commit
aa24ff5af0

+ 1 - 1
frontend/src/components/Queue.vue

@@ -82,7 +82,7 @@
 						!station.locked ||
 						!station.locked ||
 						(station.locked && isAdminOnly() && dismissedWarning))
 						(station.locked && isAdminOnly() && dismissedWarning))
 			"
 			"
-			@click="openModal('manageStation') & showManageStationTab('songs')"
+			@click="openModal('manageStation') & showManageStationTab('search')" 
 		>
 		>
 			<i class="material-icons icon-with-button">queue</i>
 			<i class="material-icons icon-with-button">queue</i>
 			<span> Add Song To Queue </span>
 			<span> Add Song To Queue </span>

+ 1 - 3
frontend/src/components/layout/MainFooter.vue

@@ -61,9 +61,7 @@ export default {
 		})
 		})
 	},
 	},
 	watch: {
 	watch: {
-		localNightmode(newValue, oldValue) {
-			if (oldValue === null) return;
-
+		localNightmode() {
 			localStorage.setItem("nightmode", this.localNightmode);
 			localStorage.setItem("nightmode", this.localNightmode);
 
 
 			if (this.loggedIn) {
 			if (this.loggedIn) {