Add the board api service to the app component
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -36,7 +36,10 @@
|
|||||||
|
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import BoardSidebar from './components/board/BoardSidebar'
|
import BoardSidebar from './components/board/BoardSidebar'
|
||||||
import AppNavigation from './components/navigation/AppNavigation';
|
import AppNavigation from './components/navigation/AppNavigation'
|
||||||
|
import { BoardApi } from './services/BoardApi'
|
||||||
|
|
||||||
|
const boardApi = new BoardApi()
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
@@ -78,6 +81,11 @@ export default {
|
|||||||
return this.sidebarRouterView || this.sidebarShownState
|
return this.sidebarRouterView || this.sidebarShownState
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
provide: function() {
|
||||||
|
return {
|
||||||
|
boardApi: boardApi
|
||||||
|
}
|
||||||
|
},
|
||||||
created: function() {
|
created: function() {
|
||||||
this.$store.dispatch('loadBoards')
|
this.$store.dispatch('loadBoards')
|
||||||
this.$store.dispatch('loadSharees')
|
this.$store.dispatch('loadSharees')
|
||||||
|
|||||||
Reference in New Issue
Block a user