xPand4B / MiPa-Pool

Eine Webanwendung, um Essensbestellungen in der Mittagspause zu verwalten und kommunizieren.
https://xpand4b.de/vhost/mipapo
MIT License
0 stars 0 forks source link

Fix Dark-mode #23

Closed xPand4B closed 4 years ago

xPand4B commented 4 years ago

Describe the bug If the user has dark mode activated, the LayoutDefault component will set the vuetify theme to dark. If this happens it takes about .5s to switch from light to dark mode. This should be fixed.

To Reproduce

  1. Grep a user that has darkmode set to true
  2. Reload page

Expected behavior Load dark mode without showing light theme first.

xPand4B commented 4 years ago

Will be fixed with https://github.com/xPand4B/MiPa-Pool/pull/39.

File: src/Frontend/Resources/app/app.js

Code:

+store.dispatch(
+    'attempt', localStorage.getItem('jwt')
+).then(() => {
     new Vue({
         el: '#app',
         components: { App },
         router,
         store,
         vuetify,
     }).$mount('#app');
+});