open-learning-exchange / planet

🌍 Planet Learning - Angular application
https://hub.docker.com/r/treehouses/planet
GNU Affero General Public License v3.0
62 stars 39 forks source link

Enterprises: UI loading #6987

Open jsschf opened 4 years ago

jsschf commented 4 years ago

When you first click on an Enterprise, the "Add member" button and other UI elements load as if the user isn't a member of the enterprise, before the UI changes to what is should be. The elements are only visible for about a half a second.

I'm assuming the page loads before the check to see if the logged in user is a member of an enterprise, and then the UI changes.

paulbert commented 4 years ago

We could try initializing the status to a blank string instead of 'unrelated'. The delete button will still show up for admins but the others shouldn't until the status is fetched from the database.

Haoran-Hu commented 4 years ago

@paulbert I do not see this happen on my end for dev environment.