Skip to content

Commit

Permalink
fix(app.js): remove commit on created and run menu adjustment on appl…
Browse files Browse the repository at this point in the history
…oad event
  • Loading branch information
amoncaldas committed Nov 22, 2021
1 parent 3cb6fd9 commit a66afb8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ export default {
appInfo: Info
},
created () {
// This is the first and main component rendered when the app
// is loaded. Therefore, as soon as it is created, we store
// a reference to the root Vue component in the store
// so that other component can easily access it
this.$store.commit('mainAppInstanceRef', this.$root)

// Register the listener for the showLoading and
// titleChanged events
this.eventBus.$on('showLoading', (value) => {
Expand All @@ -39,6 +33,8 @@ export default {
})
},
mounted() {
MainMenu.adjustMenu()
this.eventBus.$on('appLoaded', () => {
MainMenu.adjustMenu()
})
},
}

0 comments on commit a66afb8

Please sign in to comment.