File tree 1 file changed +22
-3
lines changed
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 5
5
<v-btn color =" blue" class =" mr-1" @click =" handleOrientation" >
6
6
Switch Sides
7
7
</v-btn >
8
- <v-btn color =" red" class =" mr-1" @click =" handleReset" >
9
- Reset
10
- </v-btn >
8
+ <v-dialog width =" 500" >
9
+ <template #activator =" { props } " >
10
+ <v-btn v-bind =" props" color =" red" class =" mr-1" >
11
+ Reset
12
+ </v-btn >
13
+ </template >
14
+
15
+ <template #default =" { isActive } " >
16
+ <v-card title =" Confirmation" >
17
+ <v-card-text >
18
+ Are you sure you want to reset the board?
19
+ </v-card-text >
20
+
21
+ <v-card-actions >
22
+ <v-spacer />
23
+
24
+ <v-btn text =" Confirm" color =" red" @click =" handleReset(isActive)" />
25
+ <v-btn text =" Cancel" @click =" isActive.value = false" />
26
+ </v-card-actions >
27
+ </v-card >
28
+ </template >
29
+ </v-dialog >
11
30
<v-btn color =" orange" class =" mr-1" @click =" handleUndo" >
12
31
Undo
13
32
</v-btn >
You can’t perform that action at this time.
0 commit comments