Skip to content

Commit

Permalink
Fix for documents not loading when hitting details instead of show/hi…
Browse files Browse the repository at this point in the history
…de (#100)
  • Loading branch information
BrandonSharratt authored Dec 6, 2024
1 parent 3fcff0f commit d051da7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/bcros/filing/CommonTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
v-if="filing.commentsCount > 0"
class="px-3 py-2"
variant="ghost"
@click.stop="isShowBody = !isShowBody"
@click.stop="showDetails()"
>
<UIcon name="i-mdi-message-text-outline" size="small" />
<span>
Expand Down Expand Up @@ -109,6 +109,13 @@ const isStatusPaid = computed(() => isFilingStatus(filing.value, FilingStatusE.P
const isStatusApproved = computed(() => isFilingStatus(filing.value, FilingStatusE.APPROVED))
const isShowBody = ref(false)
const showDetails = () => {
if (filing.value.documents === undefined && filing.value.documentsLink) {
loadDocumentList(filing.value)
}
isShowBody.value = !isShowBody.value
}
/** The title of this filing. */
const title =
isFilingType(filing.value, FilingTypes.ALTERATION)
Expand Down

0 comments on commit d051da7

Please sign in to comment.