Add logic to open files returned in search results (#19)
This commit is contained in:
parent
8ca9b736eb
commit
d7b2b3156c
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user