microsoftarchive / Learn-LTI

Access the Microsoft Learn http://docs.microsoft.com/learn Catalog of Learning Paths and Modules directly from your Learning Management Systems using the Microsoft Learn LTI application
https://microsoft.github.io/Learn-LTI/
MIT License
126 stars 50 forks source link

Add an error string when user is missing a name, prevents infinite spinner #151

Closed adbindal closed 3 years ago

adbindal commented 3 years ago

Background

Fixes the blocker faced in OpenEdx LTI Integration, there the user does not have a name and the experience shows an un-ending Loading spinner on the screen.

@Lee - Would you please help with the appropriate string here? The case is that we would like the user to have a name to be shown on the screen. Without that, I've added an error instead for now.

leestott commented 3 years ago

Updating to provide error message if the user has no name this.errorContent = { errorMsg: 'Please add a name for the user.', icon: 'BlockContact' };