Browse Source

fix: Settings store getters invalid and other minor fixes

Owen Diffey 2 years ago
parent
commit
0d9504aac9

+ 1 - 1
frontend/src/components/modals/ImportAlbum.vue

@@ -408,7 +408,7 @@ onBeforeUnmount(() => {
 
 <template>
 	<div>
-		<modal title="Import Album" class="import-album-modal">
+		<modal title="Import Album" class="import-album-modal" size="wide">
 			<template #body>
 				<div class="tabs-container discogs-container">
 					<div class="tab-selection">

+ 1 - 1
frontend/src/components/modals/ManageStation/index.vue

@@ -512,7 +512,7 @@ onBeforeUnmount(() => {
 					</div>
 					<hr class="section-horizontal-rule" />
 					<song-item
-						v-if="currentSong._id"
+						v-if="currentSong.youtubeId"
 						:song="currentSong"
 						:requested-by="true"
 						header="Currently Playing.."

+ 2 - 2
frontend/src/stores/settings.ts

@@ -27,7 +27,7 @@ export const useSettingsStore = defineStore("settings", {
 		}
 	},
 	getters: {
-		isGithubLinked: state => state.originalUser.services.github,
-		isPasswordLinked: state => state.originalUser.services.password
+		isGithubLinked: state => state.originalUser.github,
+		isPasswordLinked: state => state.originalUser.password
 	}
 });

+ 2 - 0
frontend/src/types/user.ts

@@ -29,6 +29,8 @@ export interface User {
 			access_token: string;
 		};
 	};
+	password?: boolean;
+	github?: boolean;
 	statistics: {
 		songsRequested: number;
 	};