File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
import Service from '@ember/service' ;
2
2
3
3
export default class FilterDataService extends Service {
4
+ // These attributes are not @tracked because they are used in computed
5
+ // properties and not directly in templates.
4
6
showInherited = false ;
5
7
showProtected = false ;
6
8
showPrivate = false ;
7
9
showDeprecated = false ;
8
- sideNav = null ;
9
10
10
- init ( ) {
11
- this . sideNav = {
12
- showPrivate : false ,
13
- } ;
14
- super . init ( ...arguments ) ;
15
- }
11
+ sideNav = {
12
+ showPrivate : false ,
13
+ } ;
16
14
}
Original file line number Diff line number Diff line change 1
1
import fetch from 'fetch' ;
2
2
import Service from '@ember/service' ;
3
+ import { tracked } from '@glimmer/tracking' ;
3
4
4
5
const LOCALNAME_CONVERSIONS = {
5
6
Object : 'EmberObject' ,
@@ -8,14 +9,16 @@ const LOCALNAME_CONVERSIONS = {
8
9
} ;
9
10
10
11
export default class LegacyModuleMappingsService extends Service {
12
+ @tracked mappings ;
13
+
11
14
async initMappings ( ) {
12
15
try {
13
16
let response = await this . fetch ( ) ;
14
17
let mappings = await response . json ( ) ;
15
18
let newMappings = this . buildMappings ( mappings ) ;
16
- this . set ( ' mappings' , newMappings ) ;
19
+ this . mappings = newMappings ;
17
20
} catch ( e ) {
18
- this . set ( ' mappings' , [ ] ) ;
21
+ this . mappings = [ ] ;
19
22
}
20
23
}
21
24
Original file line number Diff line number Diff line change 1
1
import Service from '@ember/service' ;
2
- import { tracked } from '@glimmer/tracking'
2
+ import { tracked } from '@glimmer/tracking' ;
3
3
4
4
export default class ProjectService extends Service {
5
5
@tracked version = '0.0.0' ;
You can’t perform that action at this time.
0 commit comments