8000 fix(dialogs): properly handle shared modal when using TabView as a root by ADjenkov · Pull Request #1610 · NativeScript/nativescript-angular · GitHub
[go: up one dir, main page]

Skip to content

fix(dialogs): properly handle shared modal when using TabView as a root#1610

Merged
ADjenkov merged 7 commits intomasterfrom
djenkov/modal-root-tab
Nov 19, 2018
Merged

fix(dialogs): properly handle shared modal when using TabView as a root#1610
ADjenkov merged 7 commits intomasterfrom
djenkov/modal-root-tab

Conversation

@ADjenkov
Copy link
Contributor
@ADjenkov ADjenkov commented Nov 15, 2018

Developer Note 1: If showing a modal view early in the app workflow (imagine showing modal inside ngOnInit of app.component.ts e.g) there won't be Frame from whom to initiate the ModalView appearance. It is possible that there is even no topmost() frame at that very moment. We shouldn't treat such Modals as a regular Modal views, initiated by some user action later in the app, but as regular page navigations.

Developer Note 2: We should set currentOutlet to the Outlet that corresponds the topmost() Frame when closing ModalView and there is no previous Outlet that had showingModal=true property set (the scenario from Developer Note 1 e.g.)

Developer Note 3: Introduce path property to Outlet (holds the url path to this outlet). Match thе path to Outlet when search in the UrlTree for the given Outlet (getSegmentGroupByOutlet() method).

… path to Outlet when search in the UrlTree for the given Outlet
@ADjenkov ADjenkov force-pushed the djenkov/modal-root-tab branch from ed5e9ba to 0e9a6ae Compare November 19, 2018 08:06
@ADjenkov ADjenkov merged commit 1b1226a into master Nov 19, 2018
@ghost ghost removed bug in progress labels Nov 19, 2018
@ADjenkov ADjenkov deleted the djenkov/modal-root-tab branch November 19, 2018 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0