Repository navigation
Open the first form once the menu has loaded - #4
Merged
Merged
Conversation
The shell opened the first form from OnLoaded, but the menu is fetched from the server after sign-in and was still empty there on the browser and iOS heads, so nothing opened. The view model now exposes the load as MenuLoaded, and the view opens the first form when it completes, unless the user has opened one already.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After sign-in, the shell is meant to open the first form of the menu. On the browser and iOS heads it opened nothing.
FormsView.OnLoadedread the menu once, butFormsViewModelfetches it from the server after sign-in, so on those heads it was still empty when the view loaded, and the one-time flag stopped any later attempt. The view model now exposes the load asMenuLoaded; the view awaits it and opens the first form, unless the user has opened a form in the meantime.The same change as polhem-dev/polhem#49, whose
apps/Polhem.Northwindhad the same two files. Verified there on the browser head and the iOS simulator; here the desktop and browser heads build with no warnings, and CI builds the rest.