Skip to content

Commit

Permalink
fix(ui): wait for CWD reset when entering project main view
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Apr 16, 2018
1 parent 5851634 commit 751698e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/@vue/cli-ui/src/views/ProjectHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 751698e

Please sign in to comment.