Added currently playing to player state

pull/41/head
Nikan Dalvand 2019-07-31 23:52:33 +04:30
parent 7113f66802
commit 74b822ff2b
1 changed files with 10 additions and 2 deletions

View File

@ -1,9 +1,17 @@
const state = {
fullscreen_mode: false
fullscreen_mode: false,
currently_playing: {
id: 8,
title: 'Tilte',
artist: 'Juice WRLD',
artwork: '/static/demo/clever.jpg',
stream: '/static/demo/music.mp3'
}
}
const getters = {
fullscreenStatus: (state) => state.fullscreen_mode
fullscreenStatus: (state) => state.fullscreen_mode,
currentlyPlaying: (state) => state.currently_playing
}
const mutations = {