Skip to content

Commit 445cf46

Browse files
committed
Trigger Save Program As modal with a function
1 parent b674c89 commit 445cf46

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/components/Activity.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<sidebar mobileDrawAnim=0></sidebar>
77
<v-toolbar color="indigo" dark fixed app>
88
<v-toolbar-side-icon @click.stop="toggleSidebar()" v-if="activity.drawerEnabled"></v-toolbar-side-icon>
9-
<v-toolbar-title v-if="activity.showName">
10-
{{ activity.name }}
11-
</v-toolbar-title>
9+
<v-toolbar-title v-if="activity.showName">
10+
{{ activity.name }}
11+
</v-toolbar-title>
1212
<v-spacer></v-spacer>
1313
<v-toolbar-items>
1414
<!-- If the API is available, show the desired buttons -->
@@ -1581,6 +1581,11 @@ export default {
15811581
}
15821582
},
15831583
1584+
toggleSaveAs() {
1585+
this.salva = true
1586+
newProgramName = programName
1587+
},
1588+
15841589
saveProgramAs(e) {
15851590
if (this.newProgramName != '') {
15861591
if (this.isDefault == "True" && this.programName == this.newProgramName) {

0 commit comments

Comments
 (0)