enkodellc / blazorboilerplate

Blazor Boilerplate / Starter Template with MudBlazor
MIT License
1.87k stars 372 forks source link

Exit from Login dialog #139

Closed ZedZipDev closed 4 years ago

ZedZipDev commented 4 years ago

I am here https://blazorboilerplate.com/todo_list , then click Login, but do not want to Log in and want to exit and return to the todo_list page. But in the Login dialog is only button "Home". I think it may be good to close dialog and return to the previous page but not to Home always.

enkodellc commented 4 years ago

@Oleg26Dev thanks, I agree. This sounds like a good first PR for someone.

soomon commented 4 years ago

Why not use the back button of your browser?

ZedZipDev commented 4 years ago

@soomon It can be quick solution but I think as a user. Login looks like modal dialog and have a button "Home". I'd like to exit, I click Home because no other buttons. May be button "<-" instead of Home. Keith knows better ;-)

enkodellc commented 4 years ago

I agree that a return arrow to return to the previous page. is a good idea. I don't know if there is any mechanism like asp.net's urlreferrer within Blazor. I am swamped with answering questions and other maintenance with BB. I wish to gain more contributors so this should be a fairly simple task for someone's first PR! @Oleg26Dev maybe you want to do some research and find if a solution is out there for this feature. Another option might be to create a modal Dialog for Login instead of a page. Then exiting the login will just close the dialog and no need for a urlreferrer needed.

win32nipuh commented 4 years ago

@enkodellc ok, I will check what can be done (as I see it ;-))

enkodellc commented 4 years ago

@win32nipuh, Great! One of the goal's of BB, maybe not spelled out is to get new contributors involved in features and solutions. It is definitely not for devs to make suggestions to me and and I solve if for them :)