@sedoo/unidoo 0.0.52 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedoo/unidoo",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name unidoo src/plugin.js",
@@ -6,7 +6,7 @@
6
6
  <v-card-actions>
7
7
  <v-spacer></v-spacer>
8
8
  <v-btn @click="confirmDialog=false">{{ cancelButtonLabel }}</v-btn>
9
- <v-btn color="info" @click="confirm">{{ confirmButtonLabel }}</v-btn>
9
+ <v-btn color="info" @click="confirm" :loading="loading">{{ confirmButtonLabel }}</v-btn>
10
10
  </v-card-actions>
11
11
  </v-card>
12
12
  </v-dialog>
@@ -27,13 +27,16 @@ export default {
27
27
  width: '500px',
28
28
  cancelButtonLabel: "Cancel",
29
29
  confirmButtonLabel: "Confirm",
30
- callback: {}
30
+ callback: {},
31
+ loading: false
31
32
  }
32
33
  },
33
34
  methods: {
34
- confirm: function() {
35
+ async confirm () {
36
+ this.loading = true
37
+ await this.callback()
35
38
  this.confirmDialog = false
36
- this.callback()
39
+ this.loading = false
37
40
  },
38
41
 
39
42
  show (params) {