Skip to content

Commit af2eaae

Browse files
authored
chore(update): update location strategy retrieval (#37)
1 parent eee7ce3 commit af2eaae

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

app/modal/modal-dialogs/modal-dialog.component.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ import {
1313
@Component({
1414
selector: "modal-content",
1515
template: `
16-
<StackLayout margin="24" horizontalAlignment="center" verticalAlignment="center">
17-
<Label [text]="prompt"></Label>
18-
<StackLayout orientation="horizontal" marginTop="12">
19-
<Button text="ok" (tap)="close('OK')"></Button>
20-
<Button text="cancel" (tap)="close('Cancel')"></Button>
16+
<GridLayout>
17+
<StackLayout margin="24" horizontalAlignment="center" verticalAlignment="center">
18+
<Label [text]="prompt"></Label>
19+
<StackLayout orientation="horizontal" marginTop="12">
20+
<Button text="ok" (tap)="close('OK')"></Button>
21+
<Button text="cancel" (tap)="close('Cancel')"></Button>
22+
</StackLayout>
2123
</StackLayout>
22-
</StackLayout>
24+
</GridLayout>
2325
`
2426
})
2527
export class ModalContentComponent {

app/navigation-options/navigation-info.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export class NavigationInfoComponent {
2323
update() {
2424
// If history is cleared: frameStack = 0, locationStack = 1
2525
this.frameStack = this.frame.backStack.length;
26-
this.locationStack = this.strategy._getStates().length;
26+
this.locationStack = this.strategy._getStates()["primary"].length;
2727
}
2828
}

0 commit comments

Comments
 (0)