Client/inventory WIP (#8527)

* some stable work and faster less recompilation

*  user with zero tasks can use the app

* wip work to show loading status of resources

* revert changes to sync
This commit is contained in:
Matteo Pagliazzi
2017-03-03 15:40:21 +01:00
committed by GitHub
parent 207dbf35d6
commit 8805f81b96
9 changed files with 80 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ store.watch(state => state.title, (title) => {
// Mount the app when user and tasks are loaded
let userDataWatcher = store.watch(state => [state.user, state.tasks], ([user, tasks]) => {
if (user && user._id && tasks && tasks.length) {
if (user && user._id && Array.isArray(tasks)) {
userDataWatcher(); // remove the watcher
app.$mount('#app');
}