(
groupId: string,
params?: { fromParent?: boolean; openInNewTab?: boolean },
)
| 305 | } |
| 306 | } |
| 307 | async goToGroup( |
| 308 | groupId: string, |
| 309 | params?: { fromParent?: boolean; openInNewTab?: boolean }, |
| 310 | ) { |
| 311 | mainLogger.sub('Pages.goToGroup').info('groupId: %s', groupId); |
| 312 | |
| 313 | if (params?.openInNewTab) { |
| 314 | window.open(multiModePath(`/groups/${groupId}`), '_blank'); |
| 315 | } else { |
| 316 | if (params?.fromParent) { |
| 317 | this.parentPageId = this.react.pageId; |
| 318 | } |
| 319 | |
| 320 | await router().push({ name: 'group', params: { groupId } }); |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | async goBackward() { |
| 325 | const pageIndex = this.react.pathPageIds.indexOf(this.react.pageId!); |
no test coverage detected