use isPlaying getter
This commit is contained in:
parent
8e9a6ca26d
commit
588f975eba
@ -72,7 +72,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { mapActions, mapGetters, mapState } from 'vuex'
|
import { mapActions, mapGetters } from 'vuex'
|
||||||
import TrackContextMenu from '@/library/TrackContextMenu.vue'
|
import TrackContextMenu from '@/library/TrackContextMenu.vue'
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
@ -86,11 +86,9 @@
|
|||||||
noDuration: { type: Boolean, default: false },
|
noDuration: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState('player', {
|
|
||||||
isPlaying: 'isPlaying',
|
|
||||||
}),
|
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
playingTrackId: 'player/trackId',
|
playingTrackId: 'player/trackId',
|
||||||
|
isPlaying: 'player/isPlaying',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user