datalab-org / datalab

datalab is a place to store experimental data and the connections between them.
https://docs.datalab-org.io
MIT License
42 stars 17 forks source link

Admin user list does not refresh after activating a user #812

Open ml-evs opened 1 month ago

ml-evs commented 1 month ago

It currently disappears; this is a bug introduced by me in a recent PR.

BenjaminCharmes commented 2 weeks ago

The problem seems to be in the UserTable.vue component (script -> methods -> updateUserStatus) at this line:

this.users = JSON.parse(JSON.stringify(getUsersList()));

I think this line isn't useful, as Vue already updates users when you change a user's Status. (And it failed because getUsersList() returns a promise and not just data)