@@ -111,7 +111,7 @@ class Browser extends DashboardView {
111
111
configData : { } ,
112
112
classwiseCloudFunctions : { } ,
113
113
AggregationPanelData : { } ,
114
- isLoading : false ,
114
+ isLoadingInfoPanel : false ,
115
115
errorAggregatedData : { } ,
116
116
} ;
117
117
@@ -130,7 +130,7 @@ class Browser extends DashboardView {
130
130
this . showExport = this . showExport . bind ( this ) ;
131
131
this . login = this . login . bind ( this ) ;
132
132
this . logout = this . logout . bind ( this ) ;
133
- this . setLoading = this . setLoading . bind ( this ) ;
133
+ this . setLoadingInfoPanel = this . setLoadingInfoPanel . bind ( this ) ;
134
134
this . setErrorAggregatedData = this . setErrorAggregatedData . bind ( this ) ;
135
135
this . toggleMasterKeyUsage = this . toggleMasterKeyUsage . bind ( this ) ;
136
136
this . showAttachRowsDialog = this . showAttachRowsDialog . bind ( this ) ;
@@ -255,9 +255,9 @@ class Browser extends DashboardView {
255
255
}
256
256
}
257
257
258
- setLoading ( bool ) {
258
+ setLoadingInfoPanel ( bool ) {
259
259
this . setState ( {
260
- isLoading : bool ,
260
+ isLoadingInfoPanel : bool ,
261
261
} ) ;
262
262
}
263
263
@@ -269,7 +269,7 @@ class Browser extends DashboardView {
269
269
270
270
fetchAggregationPanelData ( objectId , className , appId ) {
271
271
this . setState ( {
272
- isLoading : true ,
272
+ isLoadingInfoPanel : true ,
273
273
} ) ;
274
274
const params = {
275
275
object : Parse . Object . extend ( className ) . createWithoutData ( objectId ) . toPointer ( ) ,
@@ -283,18 +283,18 @@ class Browser extends DashboardView {
283
283
Parse . Cloud . run ( cloudCodeFunction , params , options ) . then (
284
284
result => {
285
285
if ( result && result . panel && result . panel && result . panel . segments ) {
286
- this . setState ( { AggregationPanelData : result , isLoading : false } ) ;
286
+ this . setState ( { AggregationPanelData : result , isLoadingInfoPanel : false } ) ;
287
287
} else {
288
288
this . setState ( {
289
- isLoading : false ,
289
+ isLoadingInfoPanel : false ,
290
290
errorAggregatedData : 'Improper JSON format' ,
291
291
} ) ;
292
292
this . showNote ( this . state . errorAggregatedData , true ) ;
293
293
}
294
294
} ,
295
295
error => {
296
296
this . setState ( {
297
- isLoading : false ,
297
+ isLoadingInfoPanel : false ,
298
298
errorAggregatedData : error . message ,
299
299
} ) ;
300
300
this . showNote ( this . state . errorAggregatedData , true ) ;
@@ -898,7 +898,6 @@ class Browser extends DashboardView {
898
898
899
899
async fetchParseData ( source , filters ) {
900
900
const { useMasterKey, skip, limit } = this . state ;
901
- this . setLoading ( true ) ;
902
901
this . setState ( {
903
902
data : null ,
904
903
} )
@@ -931,8 +930,6 @@ class Browser extends DashboardView {
931
930
this . setState ( { isUnique, uniqueField } ) ;
932
931
933
932
const data = await promise ;
934
-
935
- this . setLoading ( false ) ;
936
933
return data ;
937
934
}
938
935
@@ -1121,7 +1118,7 @@ class Browser extends DashboardView {
1121
1118
ordering : ordering ,
1122
1119
selection : { } ,
1123
1120
errorAggregatedData : { } ,
1124
- isLoading : false ,
1121
+ isLoadingInfoPanel : false ,
1125
1122
AggregationPanelData : { } ,
1126
1123
} ,
1127
1124
( ) => this . fetchData ( source , this . state . filters )
@@ -2098,9 +2095,8 @@ class Browser extends DashboardView {
2098
2095
classes = { this . classes }
2099
2096
classwiseCloudFunctions = { this . state . classwiseCloudFunctions }
2100
2097
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 }
2104
2100
AggregationPanelData = { this . state . AggregationPanelData }
2105
2101
setAggregationPanelData = { this . setAggregationPanelData }
2106
2102
setErrorAggregatedData = { this . setErrorAggregatedData }
0 commit comments