From d7b2b3156c7584850942c49c15c5aedd744dfef2 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Wed, 14 Oct 2020 14:00:36 -0500 Subject: [PATCH] Add logic to open files returned in search results (#19) --- src/app/components/search/Search.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/search/Search.component.ts b/src/app/components/search/Search.component.ts index 30348a3..8999fa4 100644 --- a/src/app/components/search/Search.component.ts +++ b/src/app/components/search/Search.component.ts @@ -71,6 +71,9 @@ export class SearchComponent implements OnInit { } else if ( result.type === 'db' ) { await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]); await this.dismiss(); + } else if ( result.type === 'files' ) { + await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]); + await this.dismiss(); } }