File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/@vue/cli-ui/src/components/dashboard Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 141
141
@close =" showConfig = false"
142
142
>
143
143
<div class =" default-body" >
144
+ <VueLoadingIndicator
145
+ v-if =" loadingConfig"
146
+ class =" big accent"
147
+ />
144
148
<PromptsList
149
+ v-else
145
150
:prompts =" visiblePrompts"
146
151
@answer =" answerPrompt"
147
152
/>
151
156
<VueButton
152
157
class =" primary big"
153
158
:label =" $t('org.vue.components.widget.save')"
159
+ :disabled =" loadingConfig"
154
160
@click =" saveConfig()"
155
161
/>
156
162
</div >
@@ -259,6 +265,7 @@ export default {
259
265
data () {
260
266
return {
261
267
showConfig: false ,
268
+ loadingConfig: false ,
262
269
showDetails: false ,
263
270
injected: {
264
271
// State
@@ -324,17 +331,20 @@ export default {
324
331
325
332
methods: {
326
333
async openConfig () {
334
+ this .loadingConfig = true
335
+ this .showConfig = true
327
336
await this .$apollo .mutate ({
328
337
mutation: WIDGET_CONFIG_OPEN ,
329
338
variables: {
330
339
id: this .widget .id
331
340
}
332
341
})
333
- this .showConfig = true
342
+ this .loadingConfig = false
334
343
},
335
344
336
345
async saveConfig () {
337
346
this .showConfig = false
347
+ this .loadingConfig = false
338
348
await this .$apollo .mutate ({
339
349
mutation: WIDGET_CONFIG_SAVE ,
340
350
variables: {
You can’t perform that action at this time.
0 commit comments