File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
templates/components/search-input Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ export default Component.extend({
9
9
groupName : '' ,
10
10
groupPosition : 0 , // Index of this result in the grouped results
11
11
12
+ module : computed ( 'result.{project,module}' , function ( ) {
13
+ if ( this . get ( 'result.project' ) ) {
14
+ return this . get ( 'result.project' ) ;
15
+ }
16
+ return this . get ( 'result.module' ) === 'ember-data' ? 'ember-data' : 'ember'
17
+ } ) ,
12
18
// Private API
13
19
classNames : [ 'ds-suggestion' ] ,
14
20
attributeBindings : [ 'role' ] ,
Original file line number Diff line number Diff line change 7
7
<div class =" algolia-docsearch-suggestion--content" >
8
8
{{ #if result.static }}
9
9
{{ #link-to " project-version.functions.function"
10
- ( or result.project " ember " )
10
+ module
11
11
version
12
12
result.class
13
13
result.name
34
34
{{ /link-to }}
35
35
{{ else }}
36
36
{{ #link-to " project-version.classes.class.methods.method"
37
- ( or result.project " ember " )
37
+ module
38
38
version
39
39
result.class
40
40
result.name
You can’t perform that action at this time.
0 commit comments