mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 03:23:05 +00:00
#195 WIP
This commit is contained in:
parent
a7b53ac551
commit
8a87058b4e
2 changed files with 4 additions and 16 deletions
|
@ -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')
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue