Closed marcelo-maciel closed 6 years ago
Test if it's localhost. If not show "Dear User dialog"
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?
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- .
Nice! Ok, I will change the text.
@emonney, What if I would like to use localhost to host the backend, how to get rid of that message of "Dear Developer ..." ?
@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."