瀏覽代碼

Station themes small bug fixes

Owen Diffey 4 年之前
父節點
當前提交
2934db949d
共有 2 個文件被更改,包括 6 次插入5 次删除
  1. 2 1
      frontend/src/pages/Admin/tabs/Stations.vue
  2. 4 4
      frontend/src/pages/Home/index.vue

+ 2 - 1
frontend/src/pages/Admin/tabs/Stations.vue

@@ -289,7 +289,8 @@ export default {
 				privacy: station.privacy,
 				displayName: station.displayName,
 				genres: station.genres,
-				blacklistedGenres: station.blacklistedGenres
+				blacklistedGenres: station.blacklistedGenres,
+				theme: station.theme
 			});
 			this.openModal({
 				sector: "station",

+ 4 - 4
frontend/src/pages/Home/index.vue

@@ -417,13 +417,13 @@ export default {
 							modifiableStation.currentSong.ytThumbnail = `https://img.youtube.com/vi/${station.currentSong.songId}/mqdefault.jpg`;
 
 						if (modifiableStation.theme === "blue") {
-							station.themeCode = "rgb(2, 166, 242)";
+							modifiableStation.themeCode = "rgb(2, 166, 242)";
 						} else if (modifiableStation.theme === "purple") {
-							station.themeCode = "rgb(143, 40, 140)";
+							modifiableStation.themeCode = "rgb(143, 40, 140)";
 						} else if (modifiableStation.theme === "teal") {
-							station.themeCode = "rgb(0, 209, 178)";
+							modifiableStation.themeCode = "rgb(0, 209, 178)";
 						} else {
-							station.themeCode = "rgb(2, 166, 242)";
+							modifiableStation.themeCode = "rgb(2, 166, 242)";
 						}
 
 						this.stations.push(modifiableStation);