fix(ui): wait for CWD reset when entering project main view

This commit is contained in:
Guillaume Chau
2018-04-17 01:59:46 +02:00
parent 5851634124
commit 751698edbc

View File

@@ -2,15 +2,30 @@
<div class="project-home page">
<ProjectNav/>
<div class="content">
<div v-if="ready" class="content">
<router-view/>
</div>
</div>
</template>
<script>
import PROJECT_CWD_RESET from '../graphql/projectCwdReset.gql'
export default {
name: 'ProjectHome'
name: 'ProjectHome',
data () {
return {
ready: false
}
},
async created () {
await this.$apollo.mutate({
mutation: PROJECT_CWD_RESET
})
this.ready = true
}
}
</script>