File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
packages/@vue/cli-ui/src/components Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 138
138
</div >
139
139
140
140
<div ref =" folders" class =" folders" >
141
- <VueLoadingIndicator
142
- v-if =" loading"
143
- class =" overlay"
144
- />
145
- <template v-else-if =" folderCurrent .children " >
141
+ <transition name =" vue-ui-fade" >
142
+ <VueLoadingBar
143
+ v-if =" loading"
144
+ class =" ghost primary"
145
+ unknown
146
+ />
147
+ </transition >
148
+ <template v-if =" folderCurrent && folderCurrent .children " >
146
149
<FolderExplorerItem
147
150
v-for =" folder of folderCurrent.children"
148
151
v-if =" showHidden || !folder.hidden"
@@ -261,6 +264,7 @@ export default {
261
264
async openFolder (path ) {
262
265
this .editingPath = false
263
266
this .error = null
267
+ this .loading ++
264
268
try {
265
269
await this .$apollo .mutate ({
266
270
mutation: FOLDER_OPEN ,
@@ -274,11 +278,13 @@ export default {
274
278
} catch (e) {
275
279
this .error = e
276
280
}
281
+ this .loading --
277
282
},
278
283
279
284
async openParentFolder (folder ) {
280
285
this .editingPath = false
281
286
this .error = null
287
+ this .loading ++
282
288
try {
283
289
await this .$apollo .mutate ({
284
290
mutation: FOLDER_OPEN_PARENT ,
@@ -289,6 +295,7 @@ export default {
289
295
} catch (e) {
290
296
this .error = e
291
297
}
298
+ this .loading --
292
299
},
293
300
294
301
async toggleFavorite () {
You can’t perform that action at this time.
0 commit comments