Skip to content

Commit

Permalink
[xprototype#4/feature] Use query string to open studio
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcorrea committed Mar 30, 2019
1 parent 47a5143 commit c20dcfd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/modules/Dashboard/Components/DashboardLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,23 @@ export default {
this.$browse(fallback)
}
},
/**
*/
watch: {
/**
*/
'$route.query.studio': {
imediate: true,
handler () {
this.studio = !!this.$route.query.studio
}
}
},
/**
*/
created () {
this.studio = !!this.$route.query.studio

this.debugging = this.$store.getters['app/getDebuggers']
this.$watch('debugging', (debugging) => {
this.$store.dispatch('app/setDebuggers', debugging)
Expand Down

0 comments on commit c20dcfd

Please sign in to comment.