summaryrefslogtreecommitdiff
path: root/src/views/AccessControl/Ldap/Ldap.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/AccessControl/Ldap/Ldap.vue')
-rw-r--r--src/views/AccessControl/Ldap/Ldap.vue18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/views/AccessControl/Ldap/Ldap.vue b/src/views/AccessControl/Ldap/Ldap.vue
index 3ae4784f..fee697ba 100644
--- a/src/views/AccessControl/Ldap/Ldap.vue
+++ b/src/views/AccessControl/Ldap/Ldap.vue
@@ -216,8 +216,9 @@ import { mapGetters } from 'vuex';
import { find } from 'lodash';
import { requiredIf } from 'vuelidate/lib/validators';
-import BVToastMixin from '@/components/Mixins/BVToastMixin.js';
-import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
+import BVToastMixin from '@/components/Mixins/BVToastMixin';
+import VuelidateMixin from '@/components/Mixins/VuelidateMixin';
+import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
import PageTitle from '@/components/Global/PageTitle';
import PageSection from '@/components/Global/PageSection';
import InfoTooltip from '@/components/Global/InfoTooltip';
@@ -233,7 +234,7 @@ export default {
PageSection,
TableRoleGroups
},
- mixins: [BVToastMixin, VuelidateMixin],
+ mixins: [BVToastMixin, VuelidateMixin, LoadingBarMixin],
data() {
return {
form: {
@@ -322,10 +323,17 @@ export default {
}
},
created() {
- this.$store.dispatch('ldap/getAccountSettings');
+ this.startLoader();
+ this.$store
+ .dispatch('ldap/getAccountSettings')
+ .finally(() => this.endLoader());
this.$store.dispatch('sslCertificates/getCertificates');
this.setFormValues();
},
+ beforeRouteLeave(to, from, next) {
+ this.hideLoader();
+ next();
+ },
methods: {
setFormValues(serviceType) {
if (!serviceType) {
@@ -366,6 +374,7 @@ export default {
userIdAttribute: this.form.userIdAttribute,
groupIdAttribute: this.form.groupIdAttribute
};
+ this.startLoader();
this.$store
.dispatch('ldap/saveAccountSettings', data)
.then(success => {
@@ -375,6 +384,7 @@ export default {
.catch(({ message }) => this.errorToast(message))
.finally(() => {
this.form.bindPassword = '';
+ this.endLoader();
});
},
onChangeServiceType(isActiveDirectoryEnabled) {