add edit user button

This commit is contained in:
Aran Zaiger 2020-05-26 15:39:24 +03:00
parent a73ec272a8
commit d883640955
2 changed files with 36 additions and 3 deletions

33
TODO Normal file
View file

@ -0,0 +1,33 @@
- Testing
- create tests infrastracture
- Tests
- create user
- delete user
- create&delete user with children
- create&delete user with connections
- Admin view
- Bugs
- delete children and links
- delete user
V delete self
V delete child
V delete self
V delete links
V delete links vvv
- delete books and pages
- delete user in 2 different windows (check if global 'currentUser' is affected)
- Edit user
- edit users fields
- Grapsh
- general
- change period option (year,month,week,day)
- sections (Users, calls, books? children?)
- users
- Last created
- Last logged in
- calls
- avarage duration (need to add duration to table)
- active calls?

View file

@ -55,7 +55,7 @@
</td>
<td>
<button v-if="!user.is_admin" class="button" @click="onDeleteClicked(user)">Delete</button>
<!-- <button v-if="!user.is_admin" class="button" @click="onEditClicked(user)">Edit</button> -->
<button v-if="!user.is_admin" class="button" @click="onEditClicked(user)">Edit</button>
</td>
</tr>
</table>
@ -86,10 +86,10 @@ export default {
this.showDeleteUser = true;
this.currentUser = user;
},
// onEditClicked(user){
onEditClicked(user){
// //this.showEditUser = true;
// //this.currentUser = user;
// },
},
...mapActions(["getUsers"])
},
async created() {