File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 79
79
<v-card >
80
80
<div class =" cardContent" >
81
81
<template v-if =" updateStatus == 1 " >
82
+ Caricamento del file:
82
83
<h3 >{{ counter }} %</h3 >
83
84
<br >
84
85
{{ updateStatusText }}
88
89
89
90
</template >
90
91
<template v-if =" updateStatus == 0 " >
92
+
91
93
<v-text-field label =" Seleziona il pacchetto di aggiornamento" @click =' pickFile' v-model =' fileName' prepend-icon =' attach_file' ></v-text-field >
92
94
<input type =" file" style =" display : none " ref =" file" @change =" onFilePicked" >
95
+ <template v-if =" this .fileObj " > Qualsiasi pacchetto di aggiornamento esistente verrà sovrascritto. CoderBot verrà riavviato per applicare l'aggiornamento.<br ></template >
96
+
93
97
<v-btn v-if =" this.fileObj" @click =" upload" color =" error" >Conferma</v-btn >
94
98
</template >
95
99
</div >
@@ -272,19 +276,17 @@ export default {
272
276
headers: { ' Content-Type' : ' multipart/form-data' },
273
277
onUploadProgress : progressEvent => {
274
278
this .counter = Math .floor ((progressEvent .loaded * 100 ) / progressEvent .total );
275
- if (this .counter == 100 ){
276
- this .updateStatusText = ' Upload completato. Aggiornamento in corso...'
277
- }
279
+
278
280
}
279
281
}
280
282
this .updateStatus = 1
281
283
282
- this .$axios .post (this .CB + ' /uploadFile ' , formdata, config).then (function (result ) {
284
+ this .$axios .post (this .CB + ' /updateFromPackage ' , formdata, config).then (function (result ) {
283
285
this .uploadCompleted = true ;
284
286
this .uploadInProgress = false ;
285
287
console .dir (result .data );
286
288
287
- this .updateStatusText = ' Upload completato. Aggiornamento in corso.. .'
289
+ this .updateStatusText = ' Upload completato. Riavvio in corso.'
288
290
289
291
}.bind (this ))
290
292
You can’t perform that action at this time.
0 commit comments