Преглед изворни кода

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

Owen Diffey пре 4 година
родитељ
комит
aa24ff5af0
2 измењених фајлова са 2 додато и 4 уклоњено
  1. 1 1
      frontend/src/components/Queue.vue
  2. 1 3
      frontend/src/components/layout/MainFooter.vue

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

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

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

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