mirror of
https://github.com/getbible/app.git
synced 2024-12-22 15:58:55 +00:00
Imported selection component, removed initialisation from localstorage
This commit is contained in:
parent
6ab9deac1a
commit
569434f6f8
26
src/App.vue
26
src/App.vue
@ -1,10 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div >
|
||||||
|
<!-- <div class="uk-overlay-default uk-position-cover">
|
||||||
|
<div class="uk-position-center">
|
||||||
|
<h1>Loading... Please wait...</h1>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
<navbar/>
|
<navbar/>
|
||||||
<div class="uk-container">
|
<div class="uk-container ">
|
||||||
|
<selections/>
|
||||||
|
<div class="uk-container uk-container-small">
|
||||||
|
|
||||||
<options/>
|
<options/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -15,6 +25,7 @@ import Icons from 'uikit/dist/js/uikit-icons';
|
|||||||
|
|
||||||
import navbar from './components/NavBar.vue';
|
import navbar from './components/NavBar.vue';
|
||||||
import options from './components/Options.vue';
|
import options from './components/Options.vue';
|
||||||
|
import Selections from './components/Selection.vue'
|
||||||
|
|
||||||
UIkit.use(Icons);
|
UIkit.use(Icons);
|
||||||
|
|
||||||
@ -22,16 +33,13 @@ export default {
|
|||||||
name: 'App',
|
name: 'App',
|
||||||
components: {
|
components: {
|
||||||
navbar,
|
navbar,
|
||||||
options
|
options,
|
||||||
|
Selections,
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
const userSettings = localStorage.getItem('settings');
|
|
||||||
|
|
||||||
if (userSettings) {
|
|
||||||
const settings = JSON.parse(userSettings);
|
|
||||||
this.$store.commit('set_settings', settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
this.$store.dispatch('initialise')
|
||||||
|
// console.log(JSON.parse(JSON.stringify(this.$store.state)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user