diff --git a/src/App.vue b/src/App.vue index 77973ab..95ee022 100644 --- a/src/App.vue +++ b/src/App.vue @@ -46,7 +46,7 @@ export default { }; }, computed: { - ...mapState(["showLyrics"]), + ...mapState(["showLyrics", "showLibraryDefault", "player"]), isAccountLoggedIn() { return isAccountLoggedIn(); }, @@ -62,18 +62,14 @@ export default { ); }, enablePlayer() { - return ( - this.$store.state.player.enabled && - this.$route.name !== "lastfmCallback" - ); + return this.player.enabled && this.$route.name !== "lastfmCallback"; }, showNavbar() { return this.$route.name !== "lastfmCallback"; }, }, created() { - this.$store.state.settings.showLibraryDefault && - this.$router.push("/library"); + this.showLibraryDefault && this.$router.push("/library"); if (this.isElectron) { ipcRenderer(this); } @@ -85,7 +81,7 @@ export default { if (e.target.tagName === "INPUT") return false; if (this.$route.name === "mv") return false; e.preventDefault(); - this.$refs.player.play(); + this.player.play(); } }, }, diff --git a/src/components/Player.vue b/src/components/Player.vue index 2767b6d..5e7390a 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -9,17 +9,16 @@ @click.stop >
@@ -46,16 +45,16 @@
@@ -67,24 +66,26 @@
- -
@@ -94,48 +95,48 @@
- - + +
@@ -147,7 +148,7 @@ :drag-on-click="true" :duration="0" :tooltip="`none`" - :dotSize="12" + :dot-size="12" >
@@ -167,9 +168,6 @@