@@ -51,42 +51,42 @@ import {PluginType} from '../../types';
5151 changeDetection : ChangeDetectionStrategy . OnPush ,
5252} )
5353export 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 (
7871 map ( ( filter ) => {
7972 return filter . length > 0 ;
80- } )
73+ } ) ,
74+ ) ;
75+ this . filteredPluginTypes$ = this . store . select (
76+ getMetricsFilteredPluginTypes ,
8177 ) ;
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 > ;
8286
83- readonly filteredPluginTypes$ = this . store . select (
84- getMetricsFilteredPluginTypes
85- ) ;
87+ readonly filteredPluginTypes$ ;
8688
87- readonly isSlideoutMenuOpen$ : Observable < boolean > = this . store . select (
88- isMetricsSlideoutMenuOpen
89- ) ;
89+ readonly isSlideoutMenuOpen$ : Observable < boolean > ;
9090
9191 onSettingsButtonClicked ( ) {
9292 this . store . dispatch ( metricsSettingsPaneToggled ( ) ) ;
0 commit comments