summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJannik Schönartz2020-06-02 18:33:13 +0200
committerJannik Schönartz2020-06-02 18:33:13 +0200
commit79f09bacdc4bd515e135060226888b02e285d146 (patch)
tree0e6dd40e90834c7aa2ae8e1e2141559486c01588 /webapp
parent[webapp] add no permission snackbar to 403 responses (diff)
downloadbas-79f09bacdc4bd515e135060226888b02e285d146.tar.gz
bas-79f09bacdc4bd515e135060226888b02e285d146.tar.xz
bas-79f09bacdc4bd515e135060226888b02e285d146.zip
[users/ipxe/backends] PM integration
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/AccountModule.vue6
-rw-r--r--webapp/src/components/BackendModuleEdit.vue2
-rw-r--r--webapp/src/components/LogModule.vue1
3 files changed, 3 insertions, 6 deletions
diff --git a/webapp/src/components/AccountModule.vue b/webapp/src/components/AccountModule.vue
index 73f85fb..27ec276 100644
--- a/webapp/src/components/AccountModule.vue
+++ b/webapp/src/components/AccountModule.vue
@@ -319,7 +319,7 @@ export default {
},
submitPassword () {
if (this.$refs.passwordForm.validate()) {
- this.$http.post('/api/users/' + this.user.id + '/password', { passwordCurrent: this.passwordCurrent, password: this.passwordNew }).then(response => {
+ this.$http.post('/api/users/current/password', { passwordCurrent: this.passwordCurrent, password: this.passwordNew }).then(response => {
this.cancelEditPassword()
this.$snackbar({ color: 'success', text: this.$t('passwordChanged') })
}).catch(error => {
@@ -348,10 +348,6 @@ export default {
this.passwordCurrent = ''
this.passwordNew = ''
this.passwordConfirm = ''
- },
- newAlert () {
- this.$alert({ type: 'success', text: 'aaaaaaaaaaaaaaaaaaaaaaaaaas das dsad asdpioipoidijoijoawiojdiojijowaijo d o wiadijo oiawio jdi aaaaaaaaaaaaaaaaaaaaaa uo iashdoiuas dhuas hduioash diuash diuash diuash diuh test ' + this.testId })
- this.testId++
}
}
}
diff --git a/webapp/src/components/BackendModuleEdit.vue b/webapp/src/components/BackendModuleEdit.vue
index b6fcfd5..30dd880 100644
--- a/webapp/src/components/BackendModuleEdit.vue
+++ b/webapp/src/components/BackendModuleEdit.vue
@@ -121,7 +121,7 @@ export default {
this.$store.dispatch('backends/loadData')
this.$store.commit('backends/setEdit', false)
}).catch(error => {
- this.$snackbar({ color: 'success', text: error.response })
+ if (error.response.status !== 403) this.$snackbar({ color: 'error', text: error.response })
})
}
},
diff --git a/webapp/src/components/LogModule.vue b/webapp/src/components/LogModule.vue
index 4d08464..a759c55 100644
--- a/webapp/src/components/LogModule.vue
+++ b/webapp/src/components/LogModule.vue
@@ -264,6 +264,7 @@ export default {
'GROUP_REMOVE_CLIENT',
'GROUP_BATCH_ADD_CLIENT',
'GROUP_ADD_CLIENT',
+ 'ERROR_GROUP_EDIT',
'ERROR_GROUP_DELETE',
'ERROR_GROUP_REMOVE_SUBGROUP',
'ERROR_GROUP_ADD_SUBGROUP',