emonney / QuickApp

ASP.NET Core / Angular startup project template with complete login, user and role management. Plus other useful services for Quick Application Development
https://www.ebenmonney.com/quickapp
MIT License
1.26k stars 594 forks source link

Web Api not running #31

Closed marcelo-maciel closed 6 years ago

marcelo-maciel commented 7 years ago

@emonney, can i change the message and behavior of the login component when backend service is not running?

Today behavior: Show a dialog with a message: Dear Developer! It appears your backend Web API service is not running...Would you want to temporarily switch to the online Demo API below?(Or specify another) . And enable to change the API url

Suggested behavior: Show an alert with a message: "Dear user, it looks like the system is temporarily offline. Please try again later or contact your system administrator."

emonney commented 7 years ago

Test if it's localhost. If not show "Dear User dialog"

marcelo-maciel commented 7 years ago

No, no. Today are fine showing the dialog, but thinking in production code, show the change web api dialog to a final user is a mistake. Can i transform it to an "alert dialog", and remove the new URL input?

emonney commented 7 years ago

Production user's won't see that dialog. Only users browsing from localhost will. I added that to give user's the opportunity to test the Angular part without the asp backend my specifying their own backend.

On 22 September 2017 at 13:23, Marcelo Mohr Maciel <notifications@github.com

wrote:

No, no. Today are fine showing the dialog, but thinking in production code, show the change web api dialog to a final user is a mistake. Can i transform it to an "alert dialog", and remove the new URL input?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/emonney/QuickApp/issues/31#issuecomment-331445175, or mute the thread https://github.com/notifications/unsubscribe-auth/AMEb7MwojfDNXgHB_PWH6OqovpH0L0luks5sk7S7gaJpZM4PgjH- .

marcelo-maciel commented 7 years ago

Nice! Ok, I will change the text.

AnassL commented 6 years ago

@emonney, What if I would like to use localhost to host the backend, how to get rid of that message of "Dear Developer ..." ?