Add logic to open files returned in search results (#19)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-14 14:00:36 -05:00
parent 8ca9b736eb
commit d7b2b3156c
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -71,6 +71,9 @@ export class SearchComponent implements OnInit {
} else if ( result.type === 'db' ) { } else if ( result.type === 'db' ) {
await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]); await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]);
await this.dismiss(); await this.dismiss();
} else if ( result.type === 'files' ) {
await this.router.navigate(['/editor', { id: result.associated.id, node_id: result.id }]);
await this.dismiss();
} }
} }