From 79f09bacdc4bd515e135060226888b02e285d146 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 2 Jun 2020 16:33:13 +0000 Subject: [users/ipxe/backends] PM integration --- webapp/src/components/AccountModule.vue | 6 +----- webapp/src/components/BackendModuleEdit.vue | 2 +- webapp/src/components/LogModule.vue | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'webapp') 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', -- cgit v1.2.3-55-g7522