4
2
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:
Erastus Amunwe 2020-11-02 09:50:24 +02:00
parent 6ab9deac1a
commit 569434f6f8

View File

@ -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) { this.$store.dispatch('initialise')
const settings = JSON.parse(userSettings); // console.log(JSON.parse(JSON.stringify(this.$store.state)));
this.$store.commit('set_settings', settings);
}
} }
} }
</script> </script>