mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -72,7 +72,9 @@ class IOSTransition extends Animation {
|
|||||||
|
|
||||||
if (enteringView.enableBack()) {
|
if (enteringView.enableBack()) {
|
||||||
// back direction, entering page has a back button
|
// back direction, entering page has a back button
|
||||||
enteringBackButton.fadeIn();
|
enteringBackButton
|
||||||
|
.before.addClass(SHOW_BACK_BTN_CSS)
|
||||||
|
.fadeIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -239,7 +239,7 @@ export class NavController extends Ion {
|
|||||||
|
|
||||||
this.setTransitioning(true, 500);
|
this.setTransitioning(true, 500);
|
||||||
|
|
||||||
let resolve;
|
let resolve = null;
|
||||||
let promise = new Promise(res => { resolve = res; });
|
let promise = new Promise(res => { resolve = res; });
|
||||||
|
|
||||||
// default the direction to "back"
|
// default the direction to "back"
|
||||||
@ -353,6 +353,9 @@ export class NavController extends Ion {
|
|||||||
|
|
||||||
this._incrementId(viewCtrl);
|
this._incrementId(viewCtrl);
|
||||||
this._views.splice(index, 0, viewCtrl);
|
this._views.splice(index, 0, viewCtrl);
|
||||||
|
|
||||||
|
this._cleanup();
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user