From 35eb824b456dd3f3466fb27759e5bf196bdce3ae Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 13 Oct 2020 10:24:28 -0500 Subject: [PATCH] Allow searching databases by name (#7) --- 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 e7efc0e..3ec8aec 100644 --- a/src/app/components/search/Search.component.ts +++ b/src/app/components/search/Search.component.ts @@ -72,6 +72,9 @@ export class SearchComponent implements OnInit { } else if ( result.type === 'code' ) { await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]); await this.dismiss(); + } else if ( result.type === 'db' ) { + await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]); + await this.dismiss(); } }