Read credentials from cookie store when loading app

This commit is contained in:
D. Berge
2020-10-11 17:55:17 +02:00
parent 00f4fcf292
commit fc9450434c

View File

@@ -29,6 +29,7 @@
</style>
<script>
import { mapActions } from 'vuex';
import DougalNavigation from './components/navigation';
import DougalFooter from './components/footer';
@@ -61,9 +62,14 @@ export default {
}
},
methods: {
...mapActions(["setCredentials"])
},
mounted () {
// Local Storage values are always strings
this.$vuetify.theme.dark = localStorage.getItem("darkTheme") == "true";
this.setCredentials()
}
};