IUSCA / SQAN

Scalable Quality Assurance for Neuroimaging - (SQAN): A full-stack system solution for extracting, translating, and logging (ETL) + web portal-based quality-control verification of DICOM-formatted medical imaging data/metadata.
https://sqan.sca.iu.edu/
Other
8 stars 3 forks source link

SQAN: Admin user actions are not updated in data table #153

Closed charlesbrandt closed 4 years ago

charlesbrandt commented 4 years ago

The access control section leverages vuetify data-tables to display user data. The action column is over-ridden in the UserList.vue component. When navigating from one page of users to the next, the action column does not update as expected.

For example, navigating to the last page of users and clicking on the 'edit' icon results in editing the user data from the corresponding row from the first page of the table.

youngmd commented 4 years ago

It looks like userdataLocal is the culprit. It's not being updated when userdata is changed, so I would suggest setting a watcher on userdata to update userdataLocal. Normally we'd use a computed property but since we want to mutate userdataLocal a watcher is the correct choice here.

charlesbrandt commented 4 years ago

Thanks Mike! That was the problem. Adding a watcher fixed the behavior.