Skip to content

Commit

Permalink
fix: lazy components loading, close #113
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 15, 2021
1 parent f23275a commit 5ecc4e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/client/internals/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ if (__DEV__) {
<SlidesOverview v-model="showOverview" />
<Goto />
<template v-if="__DEV__">
<WebCamera />
<RecordingDialog v-model="showRecordingDialog" />
<WebCamera v-if="WebCamera" />
<RecordingDialog v-if="RecordingDialog" v-model="showRecordingDialog" />
</template>
<InfoDialog v-if="configs.info" v-model="showInfoDialog" />
</template>
2 changes: 1 addition & 1 deletion packages/client/internals/NavControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (__DEV__)
<carbon:presentation-file />
</a>

<template v-if="!isPresenter && !md">
<template v-if="!isPresenter && !md && RecordingControls">
<RecordingControls />

<div class="w-1px m-2 opacity-10 bg-current"></div>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/internals/Play.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (__DEV__)
</SlideContainer>

<template v-if="__DEV__">
<Editor v-if="showEditor" />
<Editor v-if="Editor && showEditor" />
</template>
</div>
<Controls />
Expand Down

0 comments on commit 5ecc4e5

Please sign in to comment.