use isPlaying getter

This commit is contained in:
Thomas Amland 2021-01-24 12:25:33 +01:00
parent 8e9a6ca26d
commit 588f975eba

View File

@ -72,7 +72,7 @@
</template>
<script lang="ts">
import Vue from 'vue'
import { mapActions, mapGetters, mapState } from 'vuex'
import { mapActions, mapGetters } from 'vuex'
import TrackContextMenu from '@/library/TrackContextMenu.vue'
export default Vue.extend({
@ -86,11 +86,9 @@
noDuration: { type: Boolean, default: false },
},
computed: {
...mapState('player', {
isPlaying: 'isPlaying',
}),
...mapGetters({
playingTrackId: 'player/trackId',
isPlaying: 'player/isPlaying',
}),
},
methods: {