To be merged in Branch Network Client
- Give an option to save and delete a user
- Create a user only if name ,DOB and password fields are not empty
jjazeix | |
timotheegiet |
To be merged in Branch Network Client
Lint Skipped |
Unit Tests Skipped |
I can't run the fix:
qrc:/gcompris/src/server/views/UsersManagement.qml:302:9: Type AddUpdateUser unavailable
qrc:/gcompris/src/server/views/AddUpdateUser.qml:163:30: Expected token `,'
src/server/views/AddUpdateUser.qml | ||
---|---|---|
44 | string | |
48 | coding convention | |
101 | passwordColumn | |
147 | GCText | |
150 | qsTr() | |
222 | the aim was to be able to add multiple users at same time, not just one |
Oh! this is because the 'Delete' button can't have the id as 'delete'. I guess, it conflicts with the built in type
This has been fixed in the last commit though.
Will fix it in this commit now
src/server/views/AddUpdateUser.qml | ||
---|---|---|
46 | they are all strings? | |
54 | empy log? | |
101 | yes the aim is to understand the variable when we read them on the code. pc will mean nothing for a new person that will read the code where passwordColumn will tell him that it corresponds to the password column of the table | |
282 | why do you need an empty user? |
src/server/views/AddUpdateUser.qml | ||
---|---|---|
46 | right, they are. | |
54 | ah! mistake | |
282 |
We need to have something in our model so that our delegates get displayed. Maybe a better solution exists
No. Also, just found out that this is the case for every user that's created.
forcing the focus change solves the problem. |