Skip to content

Commit 30e8c11

Browse files
committed
Added functionality to display the routes display when closing tutorial. It will display whatever tab was last open, if the tutorial is re-opened. Some other minor changes.
1 parent a334f66 commit 30e8c11

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/dashboard_items/Dashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
},
6565
data() {
6666
return {
67-
tab: "code",
67+
tab: "routes",
6868
open: true,
6969
height: 40,
7070
up: "fas fa-chevron-up",

src/layouts/MyLayout.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Description:
8080
color="secondary"
8181
label="Getting Started"
8282
no-caps
83+
@click="this.toggleTutorial"
8384
/>
8485

8586
<SlackLoginWindow />
@@ -179,7 +180,7 @@ import OpenProjectComponent from "../components/file_system_interface/OpenProjec
179180
import SlackLoginWindow from "../components/slack_login/SlackLoginWindow.vue";
180181
import ComponentTab from "../components/home_sidebar_items/ComponentTab/ComponentTab.vue";
181182
import StoreTab from "../components/home_sidebar_items/StoreTab/StoreTab.vue";
182-
import { mapState } from "vuex";
183+
import { mapState, mapActions } from "vuex";
183184
184185
export default {
185186
// Passed down from App.vue
@@ -205,9 +206,10 @@ export default {
205206
StoreTab,
206207
},
207208
computed: {
208-
...mapState(["exportAsTypescript", "toggleTutorial"]),
209+
...mapState(["exportAsTypescript"]),
209210
},
210211
methods: {
212+
...mapActions(["toggleTutorial"]),
211213
hideRight() {
212214
this.right = !this.right;
213215
if (this.$refs.resizeBox.style.display === "none") {

0 commit comments

Comments
 (0)