File tree Expand file tree Collapse file tree 2 files changed +43
-5
lines changed Expand file tree Collapse file tree 2 files changed +43
-5
lines changed Original file line number Diff line number Diff line change 8
8
export default {
9
9
data () {
10
10
return {
11
- drawer: null ,
11
+ drawer: null
12
12
}
13
13
},
14
14
name: ' App' ,
Original file line number Diff line number Diff line change 70
70
<v-btn @click =" restoreConfig" color =" warning" >
71
71
<v-icon >fas fa-redo</v-icon > Ripristina Impostazioni
72
72
</v-btn >
73
- <v-btn @click =" restore" color =" error" >
74
- <v-icon >fas fa-power-off</v-icon > Ripristina ad impostazioni di fabbrica
75
- </v-btn >
73
+ <!-- ** Restore button + dialog box** -->
74
+ <v-dialog
75
+ v-model =" dialog"
76
+ width =" 500" >
77
+ <v-btn
78
+ slot =" activator"
79
+ color =" error" dark >
80
+ <v-icon >fas fa-wrench</v-icon > Ripristina ad impostazioni di fabbrica
81
+ </v-btn >
82
+
83
+ <v-card >
84
+ <v-card-title
85
+ class =" headline grey lighten-2"
86
+ primary-title >
87
+ <h3 >CoderBot - Restore</h3 >
88
+ </v-card-title >
89
+
90
+ <v-card-text >
91
+ Are you sure you want to restore the CoderBot?
92
+ <br >
93
+ <h3 ><b >Every saved file will be lost</b ></h3 >
94
+ </v-card-text >
95
+
96
+ <v-divider ></v-divider >
97
+
98
+ <v-card-actions >
99
+ <v-spacer ></v-spacer >
100
+ <v-btn
101
+ color =" primary"
102
+ @click =" dialog = false" >
103
+ Cancel
104
+ </v-btn >
105
+ <v-btn
106
+ color =" error"
107
+ @click =" restore" >
108
+ <b >Restore</b >
109
+ </v-btn >
110
+ </v-card-actions >
111
+ </v-card >
112
+ </v-dialog >
76
113
<!--
77
114
<v-btn color="warning">Aggiorna</v-btn>
78
115
<v-btn color="error">Ripristina ad Impostazioni di fabbrica</v-btn> -->
79
116
</div >
80
117
</v-card >
81
118
<br >
82
- <h3 class =" text-xs-left" > LOGS </h3 >
119
+ <h3 class =" text-xs-left" > Reset Logs </h3 >
83
120
<v-card >
84
121
<div class =" cardContent" >
85
122
<div v-for =" value in cb.logs.log" >
@@ -513,6 +550,7 @@ export default {
513
550
formdata: null ,
514
551
files: null ,
515
552
status: null ,
553
+ dialog: false ,
516
554
lastCommit: process .env .lastCommit ,
517
555
CB : process .env .CB_ENDPOINT + process .env .APIv2 ,
518
556
CBv1: process .env .CB_ENDPOINT ,
You can’t perform that action at this time.
0 commit comments