MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / goToGroup

Method goToGroup

apps/client/src/code/pages/pages.ts:307–322  ·  view source on GitHub ↗
(
    groupId: string,
    params?: { fromParent?: boolean; openInNewTab?: boolean },
  )

Source from the content-addressed store, hash-verified

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!);

Calls 2

multiModePathFunction · 0.90
subMethod · 0.80

Tested by

no test coverage detected