From 8a87058b4eeeb6b41d4fec909cf31bc39523daea Mon Sep 17 00:00:00 2001 From: UKDTOM Date: Mon, 11 Jan 2021 21:54:39 +0100 Subject: [PATCH] #195 WIP --- src/components/modules/PMS/Settings/settings.vue | 15 +++------------ src/store/modules/plextv.js | 5 +---- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/components/modules/PMS/Settings/settings.vue b/src/components/modules/PMS/Settings/settings.vue index d5f4df3..edb937a 100644 --- a/src/components/modules/PMS/Settings/settings.vue +++ b/src/components/modules/PMS/Settings/settings.vue @@ -109,22 +109,13 @@ methods: { async saveNewSetting() { log.debug(`Saving setting ${this.newSettingValue} for setting ${this.edtSettingKey}`); - - // Contructing url - const url = this.$store.getters.getSelectedServerAddress + '/:/prefs/set?' - - console.log('URL: ' + url) - - - + // Save setting await store.dispatch('setPMSSetting', { Token: this.$store.getters.getAuthToken, Address: this.$store.getters.getSelectedServerAddress, Setting: this.edtSettingKey, - Value: this.newSettingValue}); - - - // http://127.0.0.1:32400/:/prefs/set?LogNumFiles=30&X-Plex-Token=TOKEN + Value: this.newSettingValue}); + this.$refs['edtSetting'].hide(); }, tblRowClicked(record) { console.log('Ged Row clicked') diff --git a/src/store/modules/plextv.js b/src/store/modules/plextv.js index ed580c0..05a004d 100644 --- a/src/store/modules/plextv.js +++ b/src/store/modules/plextv.js @@ -127,10 +127,7 @@ const actions = { // that falls out of the range of 2xx log.error(`loginToPlex status: ${error.response.status}`); log.error(`loginToPlex data: ${JSON.stringify(error.response.data)}`); - - - // alert(error.response.data.message) - + // alert(error.response.data.message) var data = JSON.stringify(error.response.data); var objectValue = JSON.parse(data); var statusCode = JSON.stringify(objectValue.errors[0].code);