-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hmr): close modal views during livesync #7668
chore: add unit tests to test that modal views are closed during hmr
- Loading branch information
VladimirAmiorkov
committed
Aug 14, 2019
1 parent
589bb43
commit 91f3bd1
Showing
7 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { View, ShowModalOptions } from "tns-core-modules/ui/core/view"; | ||
const LIVESYNC_FOLDER = "livesync/"; | ||
const buttonPageModuleName = `${LIVESYNC_FOLDER}livesync-button-page`; | ||
|
||
export function onLoaded(args) { | ||
const view = args.object as View; | ||
|
||
let options: ShowModalOptions = { | ||
context: "context", | ||
closeCallback: () => console.log("modal view closeCallback raised."), | ||
animated: false | ||
}; | ||
|
||
view.showModal(buttonPageModuleName, options); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Page loaded="onLoaded"> | ||
|
||
</Page> |
This file contains 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
This file contains 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
This file contains 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