File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
async function addAppDataAdmin ( params ) {
2
+ let detailBodyWrapEl
2
3
try {
3
4
let { treePath } = params
4
5
const tab = Ext . getCmp ( 'main-tab-panel' ) . getItem ( 'appdata-admin-tab' )
@@ -250,6 +251,8 @@ async function addAppDataAdmin( params ) {
250
251
} )
251
252
thisTab . show ( )
252
253
254
+ detailBodyWrapEl = detailJson . getEl ( ) . child ( '.x-panel-bwrap' )
255
+ detailBodyWrapEl . mask ( 'Getting data...' )
253
256
const detailResponseText = ( await getDetail ( ) ) . response . responseText //used by downloadBlob
254
257
const detailTree = JsonView . createTree ( JSON . parse ( detailResponseText ) )
255
258
// adjust for rendering
@@ -258,10 +261,12 @@ async function addAppDataAdmin( params ) {
258
261
detailTree . isExpanded = true
259
262
detailTree . children [ 0 ] . isExpanded = true
260
263
261
- const el = detailJson . body
262
- JsonView . render ( detailTree , el )
264
+ JsonView . render ( detailTree , detailJson . body )
263
265
}
264
266
catch ( e ) {
265
267
SM . Error . handleError ( e )
266
268
}
269
+ finally {
270
+ detailBodyWrapEl . unmask ( )
271
+ }
267
272
}
You can’t perform that action at this time.
0 commit comments