Skip to content

Commit

Permalink
feat: create mixin for startup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 10, 2020
1 parent 6b2ea36 commit 184b0d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/utils/StartUpMixin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export default {
}
9 changes: 8 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@

<script>
import { mapMutations, mapState } from 'vuex'
// Third party
import { Touch } from 'vuetify/lib/directives/touch'
// Components
import NavToggler from '~/components/layout/navigation/sidenav/Toggler.vue'
import SideNav from '~/components/layout/navigation/sidenav/SideNav.vue'
import StartUpMixin from '~/components/utils/StartUpMixin.js'
// Lazy loaded components
const Search = () =>
import(
Expand All @@ -40,12 +45,14 @@ const Search = () =>
export default {
// Components
components: { SideNav, NavToggler, Search },
directives: { Touch },
mixins: [StartUpMixin],
data() {
return { isDashboard: false }
},
computed: {
...mapState(['searchData', 'sideNavData', 'userSettings']),
},
Expand Down

0 comments on commit 184b0d2

Please sign in to comment.