Verify check
This commit is contained in:
parent
24af7a8631
commit
4e11233f3e
|
@ -85,7 +85,8 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.$store.dispatch('grabUserSettings').then(() => {
|
||||
this.$store.dispatch('grabUserSettings').then((result) => {
|
||||
console.log('AFTER GRABBING', result)
|
||||
this.$store.dispatch('grabHistory')
|
||||
this.$store.dispatch('grabAllProfiles', this.$t('Profile.All Channels'))
|
||||
this.$store.dispatch('grabAllPlaylists')
|
||||
|
|
|
@ -27,7 +27,7 @@ const profileDb = new Datastore({
|
|||
const state = {
|
||||
profileList: [{
|
||||
_id: 'allChannels',
|
||||
name: 'Brudi Channels',
|
||||
name: 'All Channels',
|
||||
bgColor: '#000000',
|
||||
textColor: '#FFFFFF',
|
||||
subscriptions: []
|
||||
|
|
|
@ -264,6 +264,7 @@ const getters = {
|
|||
|
||||
const actions = {
|
||||
grabUserSettings ({ dispatch, commit, rootState }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
settingsDb.find({}, (err, results) => {
|
||||
if (!err) {
|
||||
console.log(results)
|
||||
|
@ -280,7 +281,7 @@ const actions = {
|
|||
commit('setBackendFallback', result.value)
|
||||
break
|
||||
case 'defaultProfile':
|
||||
console.log("IN SETTING DEFAULT:", result.value)
|
||||
console.log('IN SETTING DEFAULT:', result.value)
|
||||
commit('setDefaultProfile', result.value)
|
||||
break
|
||||
case 'checkForUpdates':
|
||||
|
@ -410,7 +411,10 @@ const actions = {
|
|||
break
|
||||
}
|
||||
})
|
||||
resolve()
|
||||
}
|
||||
reject(err)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
@ -252,6 +252,7 @@ const actions = {
|
|||
},
|
||||
|
||||
ytGetPlaylistInfo ({ rootState }, playlistId) {
|
||||
console.log("PALYLIST INTOFOF")
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log(playlistId)
|
||||
console.log('Getting playlist info please wait...')
|
||||
|
@ -297,6 +298,7 @@ const actions = {
|
|||
limit: 'Infinity',
|
||||
requestOptions: { agent }
|
||||
}).then((result) => {
|
||||
console.log("RESULT PLAYLIST", result)
|
||||
resolve(result)
|
||||
}).catch((err) => {
|
||||
reject(err)
|
||||
|
|
Loading…
Reference in New Issue