Fixed saveSettings and updateSettings
This commit is contained in:
parent
9710a5f19f
commit
134c43a855
File diff suppressed because one or more lines are too long
@ -934,7 +934,11 @@ export default {
|
|||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('saveSettings', this.lastSettings, this.lastCredentials, changed ? this.lastUser : false)
|
socket.emit('saveSettings', {
|
||||||
|
settings: this.lastSettings,
|
||||||
|
spotifySettings: this.lastCredentials,
|
||||||
|
spotifyUser: changed ? this.lastUser : false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
selectDownloadFolder() {
|
selectDownloadFolder() {
|
||||||
socket.emit('selectDownloadFolder')
|
socket.emit('selectDownloadFolder')
|
||||||
@ -989,7 +993,8 @@ export default {
|
|||||||
|
|
||||||
toast(this.$t('settings.toasts.init'), 'settings')
|
toast(this.$t('settings.toasts.init'), 'settings')
|
||||||
},
|
},
|
||||||
updateSettings(newSettings, newCredentials) {
|
updateSettings(data) {
|
||||||
|
const {settings: newSettings, spotifySettings: newCredentials} = data
|
||||||
this.loadSettings(newSettings)
|
this.loadSettings(newSettings)
|
||||||
this.loadCredentials(newCredentials)
|
this.loadCredentials(newCredentials)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user