@@ -34,23 +34,23 @@
],
data() {
return {
- userName: this.username,
- passWord: '',
- firstName: this.firstname,
- lastName: this.lastname,
- role: this.roles.length ? this.roles[0].kind : 'learner',
+ username_new: this.username,
+ password_new: '',
+ firstName_new: this.firstname,
+ lastName_new: this.lastname,
+ role_new: this.roles.length ? this.roles[0].kind : 'learner',
};
},
methods: {
editUser() {
const payload = {
- password: this.passWord,
- username: this.userName,
- first_name: this.firstName,
- last_name: this.lastName,
+ password: this.password_new,
+ username: this.username_new,
+ first_name: this.firstName_new,
+ last_name: this.lastName_new,
facility: this.facility,
};
- this.updateUser(this.userid, payload, this.role);
+ this.updateUser(this.userid, payload, this.role_new);
},
},
vuex: {
@@ -70,8 +70,8 @@
.title
display: inline
-
+
.confirm-btn
float: right
-
\ No newline at end of file
+
diff --git a/kolibri/plugins/management/assets/src/vue/learner-roster.vue b/kolibri/plugins/management/assets/src/vue/user-roster.vue
similarity index 53%
rename from kolibri/plugins/management/assets/src/vue/learner-roster.vue
rename to kolibri/plugins/management/assets/src/vue/user-roster.vue
index 2404ffe208b..8ced95aac54 100644
--- a/kolibri/plugins/management/assets/src/vue/learner-roster.vue
+++ b/kolibri/plugins/management/assets/src/vue/user-roster.vue
@@ -1,24 +1,23 @@