jaeyun0503 commented on PR #4065:
URL: https://github.com/apache/texera/pull/4065#issuecomment-3561477999

   > I am trying to understand the design. If the user list is "A, B, C", and 
the admin changed the type of user "B" from "Inactive" to "Regular," what would 
the frontend do?
   
   So the previous code would only call the ngOnInit again, which fetches the 
userlist again. My implementation is to only change the affected user in place 
without fetching the list again. I create a new User to record the changes. 
Frontend finds the index of the edited user in userList and create a new array 
with that one User replaced with my created User, then assign the array back to 
this.userList, same thing happens to listOfDisplayUser to reflect the edit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to