Kaynağa Gözat

fix(EditPlaylist/Settings): isAdmin method wasn't defined

Kristian Vos 3 yıl önce
ebeveyn
işleme
9bc88f25f5

+ 3 - 0
frontend/src/components/modals/EditPlaylist/Tabs/Settings.vue

@@ -90,6 +90,9 @@ export default {
 					this.userRole === "admin")
 			);
 		},
+		isAdmin() {
+			return this.userRole === "admin";
+		},
 		renamePlaylist() {
 			const { displayName } = this.playlist;
 			if (!validation.isLength(displayName, 2, 32))

+ 2 - 1
frontend/src/pages/Station/index.vue

@@ -1022,7 +1022,8 @@ export default {
 		});
 
 		this.socket.on("event:station.voteSkipSong", () => {
-			if (this.currentSong) this.updateCurrentSongSkipVotes(this.currentSong.skipVotes + 1);
+			if (this.currentSong)
+				this.updateCurrentSongSkipVotes(this.currentSong.skipVotes + 1);
 		});
 
 		this.socket.on("event:privatePlaylist.selected", res => {