Skip to content

Commit

Permalink
Update StatusCard.vue, add togglecw events to other presenters
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Jul 9, 2021
1 parent 0f54206 commit 9607243
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/assets/js/components/partials/StatusCard.vue
Expand Up @@ -40,19 +40,19 @@
</div>

<div v-else-if="status.pf_type === 'video'" class="w-100">
<video-presenter :status="status"></video-presenter>
<video-presenter :status="status" v-on:togglecw="status.sensitive = false"></video-presenter>
</div>

<div v-else-if="status.pf_type === 'photo:album'" class="w-100">
<photo-album-presenter :status="status" v-on:lightbox="lightbox"></photo-album-presenter>
<photo-album-presenter :status="status" v-on:lightbox="lightbox" v-on:togglecw="status.sensitive = false"></photo-album-presenter>
</div>

<div v-else-if="status.pf_type === 'video:album'" class="w-100">
<video-album-presenter :status="status"></video-album-presenter>
<video-album-presenter :status="status" v-on:togglecw="status.sensitive = false"></video-album-presenter>
</div>

<div v-else-if="status.pf_type === 'photo:video:album'" class="w-100">
<mixed-album-presenter :status="status" v-on:lightbox="lightbox"></mixed-album-presenter>
<mixed-album-presenter :status="status" v-on:lightbox="lightbox" v-on:togglecw="status.sensitive = false"></mixed-album-presenter>
</div>

<div v-else class="w-100">
Expand Down

0 comments on commit 9607243

Please sign in to comment.