This commit is contained in:
UKDTOM 2021-01-11 21:54:39 +01:00
parent a7b53ac551
commit 8a87058b4e
2 changed files with 4 additions and 16 deletions

View file

@ -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
this.$refs['edtSetting'].hide();
},
tblRowClicked(record) {
console.log('Ged Row clicked')

View file

@ -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)
var data = JSON.stringify(error.response.data);
var objectValue = JSON.parse(data);
var statusCode = JSON.stringify(objectValue.errors[0].code);