File tree 2 files changed +4
-6
lines changed
ui/src/app/shared/component/search
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ The following commands are available:
54
54
$ npm start
55
55
56
56
# Run the unit tests
57
- $ ng test --single-run
57
+ $ ng test --watch=false
58
58
59
59
# Run lint
60
60
$ ng lint
Original file line number Diff line number Diff line change @@ -64,11 +64,9 @@ export class SearchComponent implements OnInit {
64
64
}
65
65
66
66
ngOnInit ( ) : void {
67
- this . aboutService . getAbout ( )
68
- . subscribe ( ( about : AboutState ) => {
69
- this . enabled . streams = about . features . streams ;
70
- this . enabled . tasks = about . features . tasks ;
71
- } ) ;
67
+ this . aboutService . isFeatureEnabled ( 'streams' ) . then ( enabled => this . enabled . streams = enabled ) ;
68
+ this . aboutService . isFeatureEnabled ( 'tasks' ) . then ( enabled => this . enabled . tasks = enabled ) ;
69
+
72
70
this . search . valueChanges
73
71
. pipe (
74
72
map ( val => {
You can’t perform that action at this time.
0 commit comments