This commit is contained in:
@@ -13,14 +13,15 @@
|
||||
<b>{{ artist_duration }}</b>
|
||||
</span>
|
||||
<div class="flex-row ma-top ma-bottom">
|
||||
<button class="flat ma-right">
|
||||
<awesome-icon icon="star" size="2x" class="favourite" :class="{ active: isFavourite }" @click="toggleFavourite" />
|
||||
<button class="flat ma-right" @click="toggleFavourite" title="Favourite">
|
||||
<awesome-icon :icon="['fas', 'star']" size="2x" class="white-text favourite active" v-if="isFavourite" />
|
||||
<awesome-icon :icon="['far', 'star']" size="2x" class="white-text favourite" v-else />
|
||||
</button>
|
||||
<button class="flat ma-right" v-if="selectedArtist.progress">
|
||||
<awesome-icon icon="play" size="2x" class="primary-text " @click="playProgress" title="Keep playing" />
|
||||
</button>
|
||||
<button class="flat ma-right" v-else>
|
||||
<awesome-icon icon="play" size="2x" class="white-text" @click="playArtist" title="Keep playing" />
|
||||
<awesome-icon icon="play" size="2x" class="white-text" @click="playArtist" title="Play" />
|
||||
</button>
|
||||
<button @click="gotoPrevArtist" class="flat ma-left ma-right" :title="prevArtist.name" :disabled="!prevArtist._id">
|
||||
<awesome-icon icon="angle-left" class="ma4 white-text" />
|
||||
@@ -115,8 +116,9 @@ export default {
|
||||
},
|
||||
closed() {
|
||||
if (
|
||||
window.history.state.back.indexOf("?") == -1 ||
|
||||
window.history.state.back.startsWith("/search")
|
||||
window.history.state.back && (
|
||||
window.history.state.back.indexOf("?") == -1 ||
|
||||
window.history.state.back.startsWith("/search"))
|
||||
) {
|
||||
this.$router.back();
|
||||
} else {
|
||||
|
||||
@@ -4,6 +4,7 @@ import App from './App.vue'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { fas } from '@fortawesome/free-solid-svg-icons'
|
||||
import { far } from '@fortawesome/free-regular-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
|
||||
import DialogBase from "./components/base-components/Dialog";
|
||||
@@ -15,6 +16,7 @@ import ArtistItem from "./components/Artist"
|
||||
import BoxItem from "./components/Box"
|
||||
|
||||
library.add(fas)
|
||||
library.add(far)
|
||||
|
||||
import store from "./store/index";
|
||||
import router from './router'
|
||||
|
||||
Reference in New Issue
Block a user