File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 55
55
<v-dialog v-model =" runtimeDialog" width =" 500" >
56
56
<v-card >
57
57
<v-card-title class =" headline grey lighten-2" primary-title >
58
- {{ $t("message.running") }}
58
+ {{ $t("message.program_status_title") }}
59
+ <v-spacer ></v-spacer >
60
+ <v-chip v-if =" program_status"
61
+ class =" ma-2"
62
+ color =" red"
63
+ text-color =" white"
64
+ >
65
+ {{ $t("message.program_running")}}
66
+ </v-chip >
67
+ <v-chip v-else
68
+ class =" ma-2"
69
+ color =" grey"
70
+ text-color =" white"
71
+ >
72
+ {{ $t("message.program_completed")}}
73
+ </v-chip >
59
74
</v-card-title >
60
75
<template v-if =" activity .exec .camera " >
61
76
<v-card-text v-if =" runtimeDialog" >
69
84
<v-card-actions >
70
85
<v-spacer ></v-spacer >
71
86
<v-btn color =" primary" text @click =" runtimeDialog = false; stopProgram()" >
72
- {{ $t("message.close") }}
87
+ <span v-if =" program_status" >{{ $t("message.program_stop") }}</span >
88
+ <span v-else >{{ $t("message.close") }}</span >
73
89
</v-btn >
74
90
</v-card-actions >
75
91
</v-card >
@@ -364,6 +380,7 @@ export default {
364
380
dirty: false ,
365
381
confirm_exit_dialog: null ,
366
382
router_next: null ,
383
+ program_status: null
367
384
}),
368
385
computed: {
369
386
statusText () {
@@ -921,7 +938,8 @@ export default {
921
938
console .log (' Updating Execution status' );
922
939
axios .get (` ${ this .CBv1 } /program/status` )
923
940
.then ((response ) => {
924
- if (response .data .running ) {
941
+ this .program_status = response .data .running ;
942
+ if (this .program_status ) {
925
943
// Check again in a second
926
944
setTimeout (() => {
927
945
this .updateExecStatus ();
Original file line number Diff line number Diff line change 18
18
"no" : " No" ,
19
19
"yes" : " Sì" ,
20
20
"confirm" : " Conferma" ,
21
+ "program_status_title" : " Stato Esecuzione" ,
22
+ "program_running" : " In esecuzione" ,
23
+ "program_completed" : " Completato" ,
21
24
"program_name_must_be_filled" : " Il nome del programma non può essere vuoto." ,
22
25
"cannot_overwrite_default_program" : " Impossibile sovrascrivere un programma di default, cambiare il nome." ,
23
26
"overwrite" : " Sovrascrivi" ,
You can’t perform that action at this time.
0 commit comments