File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 170
170
</v-btn >
171
171
<br ><br >
172
172
<div v-for =" button, i in activity.buttons" >
173
- <h3 >Pulsante {{i + 1}} <v-btn @click =" removeButton(i)" flat icon >
173
+ <h3 >Pulsante {{i + 1}}
174
+ <v-btn @click =" removeButton(i)" flat icon v-if =" !button.notErasable" >
174
175
<v-icon >clear</v-icon >
175
176
</v-btn ></h3 >
176
177
<v-card >
177
178
<div class =" cardContent" >
179
+ <span class =" grey--text text--darken-2" v-if =" button.notErasable" > "Esegui" non può essere eliminato </span >
178
180
<v-text-field v-model =" button.label" label =" Etichetta" ></v-text-field >
179
- <v-select v-model =" button.action" :items =" actions" label =" Azione" >
181
+ <v-select v-model =" button.action" :items =" actions" label =" Azione" :disabled = " button.notErasable " >
180
182
</v-select >
181
183
<v-select :items =" textColors" v-model =" button.colorText" label =" Colore testo" ></v-select >
182
184
Colore Pulsante <swatches v-model =" button.colorBtn" ></swatches >
@@ -418,7 +420,8 @@ export default {
418
420
icon: ' play_arrow' ,
419
421
colorBtn: ' green' ,
420
422
colorText: ' white--text' ,
421
- action: ' runProgramLegacy'
423
+ action: ' runProgramLegacy' ,
424
+ notErasable: true
422
425
},
423
426
{
424
427
label: ' Salva' ,
You can’t perform that action at this time.
0 commit comments