@@ -111,7 +111,7 @@ class Browser extends DashboardView {
111111 configData : { } ,
112112 classwiseCloudFunctions : { } ,
113113 AggregationPanelData : { } ,
114- isLoading : false ,
114+ isLoadingInfoPanel : false ,
115115 errorAggregatedData : { } ,
116116 } ;
117117
@@ -130,7 +130,7 @@ class Browser extends DashboardView {
130130 this . showExport = this . showExport . bind ( this ) ;
131131 this . login = this . login . bind ( this ) ;
132132 this . logout = this . logout . bind ( this ) ;
133- this . setLoading = this . setLoading . bind ( this ) ;
133+ this . setLoadingInfoPanel = this . setLoadingInfoPanel . bind ( this ) ;
134134 this . setErrorAggregatedData = this . setErrorAggregatedData . bind ( this ) ;
135135 this . toggleMasterKeyUsage = this . toggleMasterKeyUsage . bind ( this ) ;
136136 this . showAttachRowsDialog = this . showAttachRowsDialog . bind ( this ) ;
@@ -255,9 +255,9 @@ class Browser extends DashboardView {
255255 }
256256 }
257257
258- setLoading ( bool ) {
258+ setLoadingInfoPanel ( bool ) {
259259 this . setState ( {
260- isLoading : bool ,
260+ isLoadingInfoPanel : bool ,
261261 } ) ;
262262 }
263263
@@ -269,7 +269,7 @@ class Browser extends DashboardView {
269269
270270 fetchAggregationPanelData ( objectId , className , appId ) {
271271 this . setState ( {
272- isLoading : true ,
272+ isLoadingInfoPanel : true ,
273273 } ) ;
274274 const params = {
275275 object : Parse . Object . extend ( className ) . createWithoutData ( objectId ) . toPointer ( ) ,
@@ -283,18 +283,18 @@ class Browser extends DashboardView {
283283 Parse . Cloud . run ( cloudCodeFunction , params , options ) . then (
284284 result => {
285285 if ( result && result . panel && result . panel && result . panel . segments ) {
286- this . setState ( { AggregationPanelData : result , isLoading : false } ) ;
286+ this . setState ( { AggregationPanelData : result , isLoadingInfoPanel : false } ) ;
287287 } else {
288288 this . setState ( {
289- isLoading : false ,
289+ isLoadingInfoPanel : false ,
290290 errorAggregatedData : 'Improper JSON format' ,
291291 } ) ;
292292 this . showNote ( this . state . errorAggregatedData , true ) ;
293293 }
294294 } ,
295295 error => {
296296 this . setState ( {
297- isLoading : false ,
297+ isLoadingInfoPanel : false ,
298298 errorAggregatedData : error . message ,
299299 } ) ;
300300 this . showNote ( this . state . errorAggregatedData , true ) ;
@@ -898,7 +898,6 @@ class Browser extends DashboardView {
898898
899899 async fetchParseData ( source , filters ) {
900900 const { useMasterKey, skip, limit } = this . state ;
901- this . setLoading ( true ) ;
902901 this . setState ( {
903902 data : null ,
904903 } )
@@ -931,8 +930,6 @@ class Browser extends DashboardView {
931930 this . setState ( { isUnique, uniqueField } ) ;
932931
933932 const data = await promise ;
934-
935- this . setLoading ( false ) ;
936933 return data ;
937934 }
938935
@@ -1121,7 +1118,7 @@ class Browser extends DashboardView {
11211118 ordering : ordering ,
11221119 selection : { } ,
11231120 errorAggregatedData : { } ,
1124- isLoading : false ,
1121+ isLoadingInfoPanel : false ,
11251122 AggregationPanelData : { } ,
11261123 } ,
11271124 ( ) => this . fetchData ( source , this . state . filters )
@@ -2098,9 +2095,8 @@ class Browser extends DashboardView {
20982095 classes = { this . classes }
20992096 classwiseCloudFunctions = { this . state . classwiseCloudFunctions }
21002097 callCloudFunction = { this . fetchAggregationPanelData }
2101- isLoadingCloudFunction = { this . state . isLoading }
2102- isLoading = { this . state . isLoading }
2103- setLoading = { this . setLoading }
2098+ isLoadingCloudFunction = { this . state . isLoadingInfoPanel }
2099+ setLoadingInfoPanel = { this . setLoadingInfoPanel }
21042100 AggregationPanelData = { this . state . AggregationPanelData }
21052101 setAggregationPanelData = { this . setAggregationPanelData }
21062102 setErrorAggregatedData = { this . setErrorAggregatedData }
0 commit comments