diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-17 10:37:30 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-17 10:37:30 -0600 |
commit | 6b715224f2221112d4ab5cc49c112d09c5149d80 (patch) | |
tree | 4565c61e307e7e26193030626cbb8c0434cb6df8 /src/state/models/navigation.ts | |
parent | b390101106c7a093bf4bfce5814c70c5eb8ffb87 (diff) | |
download | voidsky-6b715224f2221112d4ab5cc49c112d09c5149d80.tar.zst |
Include tab count and move btn to center
Diffstat (limited to 'src/state/models/navigation.ts')
-rw-r--r-- | src/state/models/navigation.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/models/navigation.ts b/src/state/models/navigation.ts index 096f35335..553a897d4 100644 --- a/src/state/models/navigation.ts +++ b/src/state/models/navigation.ts @@ -179,6 +179,10 @@ export class NavigationModel { return this.tabs[this.tabIndex] } + get tabCount() { + return this.tabs.length + } + isCurrentScreen(tabId: number, index: number) { return this.tab.id === tabId && this.tab.index === index } |