Skip to content

Commit 231f098

Browse files
committed
Remove all buttons keeps the "Run" one. Toolbar preview shows the title, in case it's there.
1 parent 70e3952 commit 231f098

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/ActivityEditor.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
<h3> Anteprima Toolbar </h3>
148148
<v-toolbar>
149149
<v-toolbar-side-icon v-if="activity.drawerEnabled"></v-toolbar-side-icon>
150-
<v-toolbar-title v-if="activity.showName">Attività 1</v-toolbar-title>
150+
<v-toolbar-title v-if="activity.showName">{{ activity.name || "Nome Attività"}}</v-toolbar-title>
151151
<v-spacer></v-spacer>
152152
<v-toolbar-items>
153153
<template v-for="button, i in activity.buttons">
@@ -345,7 +345,6 @@ export default {
345345
'search',
346346
'settings',
347347
'stars',
348-
'sentiment_satisfied_alt',
349348
'games',
350349
'loop',
351350
'replay',
@@ -488,8 +487,15 @@ export default {
488487
this.activity.buttons.splice(index, 1)
489488
},
490489
removeAll: function() {
491-
this.activity.buttons = []
492-
},
490+
this.activity.buttons = [{
491+
label: 'Esegui',
492+
icon: 'play_arrow',
493+
colorBtn: 'green',
494+
colorText: 'white--text',
495+
action: 'runProgramLegacy',
496+
notErasable: true
497+
}
498+
] },
493499
restoreDefaults: function() {
494500
this.activity.buttons = [{
495501
label: 'Esegui',

0 commit comments

Comments
 (0)