File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/@vue/cli-ui/src/views Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 51
51
:label =" $route.query.action || $t('org.vue.views.project-select.buttons.import')"
52
52
class =" big primary import-project"
53
53
:disabled =" !folderCurrent.isPackage"
54
+ :loading =" busy"
54
55
@click =" importProject()"
55
56
/>
56
57
</div >
@@ -118,7 +119,8 @@ export default {
118
119
folderCurrent: {},
119
120
tab: undefined ,
120
121
hideTabs: !! this .$route .query .hideTabs ,
121
- showNoModulesModal: false
122
+ showNoModulesModal: false ,
123
+ busy: false
122
124
}
123
125
},
124
126
@@ -144,6 +146,8 @@ export default {
144
146
},
145
147
146
148
async importProject () {
149
+ this .busy = true
150
+ await this .$nextTick ()
147
151
try {
148
152
await this .$apollo .mutate ({
149
153
mutation: PROJECT_IMPORT ,
@@ -159,6 +163,7 @@ export default {
159
163
if (e .graphQLErrors && e .graphQLErrors .some (e => e .message === ' NO_MODULES' )) {
160
164
this .showNoModulesModal = true
161
165
}
166
+ this .busy = false
162
167
}
163
168
}
164
169
}
You can’t perform that action at this time.
0 commit comments