mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Close current modal page on livesync
This commit is contained in:
@ -39,6 +39,10 @@ function buildEntryFromArgs(arg: any): definition.NavigationEntry {
|
|||||||
export function reloadPage(): void {
|
export function reloadPage(): void {
|
||||||
let frame = topmost();
|
let frame = topmost();
|
||||||
if (frame) {
|
if (frame) {
|
||||||
|
if (frame.currentPage && (<any>frame.currentPage)._modal) {
|
||||||
|
(<any>frame.currentPage)._modal.closeModal();
|
||||||
|
}
|
||||||
|
|
||||||
let currentEntry = frame._currentEntry.entry;
|
let currentEntry = frame._currentEntry.entry;
|
||||||
let newEntry: definition.NavigationEntry = {
|
let newEntry: definition.NavigationEntry = {
|
||||||
animated: false,
|
animated: false,
|
||||||
|
Reference in New Issue
Block a user