@@ -51,42 +51,42 @@ import {PluginType} from '../../types';
51
51
changeDetection : ChangeDetectionStrategy . OnPush ,
52
52
} )
53
53
export class MainViewContainer {
54
- constructor ( private readonly store : Store < State > ) { }
55
-
56
- readonly isSidepaneOpen$ : Observable < boolean > = this . store . select (
57
- isMetricsSettingsPaneOpen
58
- ) ;
59
-
60
- readonly initialTagsLoading$ : Observable < boolean > = this . store
61
- . select ( getMetricsTagMetadataLoadState )
62
- . pipe (
63
- // disconnect and don't listen to store if tags are loaded at least once.
64
- takeWhile ( ( loadState ) => {
65
- return loadState . lastLoadedTimeInMs === null ;
66
- } , true /** inclusive */ ) ,
67
- map ( ( loadState ) => {
68
- return (
69
- loadState . state === DataLoadState . LOADING &&
70
- loadState . lastLoadedTimeInMs === null
71
- ) ;
72
- } )
73
- ) ;
74
-
75
- readonly showFilteredView$ : Observable < boolean > = this . store
76
- . select ( getMetricsTagFilter )
77
- . pipe (
54
+ constructor ( private readonly store : Store < State > ) {
55
+ this . isSidepaneOpen$ = this . store . select ( isMetricsSettingsPaneOpen ) ;
56
+ this . initialTagsLoading$ = this . store
57
+ . select ( getMetricsTagMetadataLoadState )
58
+ . pipe (
59
+ // disconnect and don't listen to store if tags are loaded at least once.
60
+ takeWhile ( ( loadState ) => {
61
+ return loadState . lastLoadedTimeInMs === null ;
62
+ } , true /** inclusive */ ) ,
63
+ map ( ( loadState ) => {
64
+ return (
65
+ loadState . state === DataLoadState . LOADING &&
66
+ loadState . lastLoadedTimeInMs === null
67
+ ) ;
68
+ } ) ,
69
+ ) ;
70
+ this . showFilteredView$ = this . store . select ( getMetricsTagFilter ) . pipe (
78
71
map ( ( filter ) => {
79
72
return filter . length > 0 ;
80
- } )
73
+ } ) ,
74
+ ) ;
75
+ this . filteredPluginTypes$ = this . store . select (
76
+ getMetricsFilteredPluginTypes ,
81
77
) ;
78
+ this . isSlideoutMenuOpen$ = this . store . select ( isMetricsSlideoutMenuOpen ) ;
79
+ }
80
+
81
+ readonly isSidepaneOpen$ : Observable < boolean > ;
82
+
83
+ readonly initialTagsLoading$ : Observable < boolean > ;
84
+
85
+ readonly showFilteredView$ : Observable < boolean > ;
82
86
83
- readonly filteredPluginTypes$ = this . store . select (
84
- getMetricsFilteredPluginTypes
85
- ) ;
87
+ readonly filteredPluginTypes$ ;
86
88
87
- readonly isSlideoutMenuOpen$ : Observable < boolean > = this . store . select (
88
- isMetricsSlideoutMenuOpen
89
- ) ;
89
+ readonly isSlideoutMenuOpen$ : Observable < boolean > ;
90
90
91
91
onSettingsButtonClicked ( ) {
92
92
this . store . dispatch ( metricsSettingsPaneToggled ( ) ) ;
0 commit comments