Fixed saveSettings and updateSettings

This commit is contained in:
RemixDev 2021-05-13 11:39:49 +02:00
parent 9710a5f19f
commit 134c43a855
2 changed files with 9 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -934,7 +934,11 @@ export default {
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() {
socket.emit('selectDownloadFolder')
@ -989,7 +993,8 @@ export default {
toast(this.$t('settings.toasts.init'), 'settings')
},
updateSettings(newSettings, newCredentials) {
updateSettings(data) {
const {settings: newSettings, spotifySettings: newCredentials} = data
this.loadSettings(newSettings)
this.loadCredentials(newCredentials)