Skip to content

Commit

Permalink
24821 - fix for no documents on expanded screen. (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfekete authored Dec 12, 2024
1 parent 4ab05b3 commit 6ad0688
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/bcros/filing/CommonTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ if (filing.value.commentsCount && filing.value.commentsLink) {
const isStatusPaid = computed(() => isFilingStatus(filing.value, FilingStatusE.PAID))
const isStatusApproved = computed(() => isFilingStatus(filing.value, FilingStatusE.APPROVED))
const url = useRequestURL()
const expandedFilingId = url.searchParams.get('filing_id')
const isShowBody = ref(expandedFilingId && expandedFilingId === filing?.value?.filingId?.toString())
const isShowBody = ref(false)
const showDetails = () => {
if (filing.value.documents === undefined && filing.value.documentsLink) {
Expand All @@ -118,6 +116,13 @@ const showDetails = () => {
isShowBody.value = !isShowBody.value
}
// auto expand item if expandedFilingId is in URL & item is not expanded
const url = useRequestURL()
const expandedFilingId = url.searchParams.get('filing_id')
if (!isShowBody.value && expandedFilingId && expandedFilingId === filing?.value?.filingId?.toString()) {
showDetails()
}
/** The title of this filing. */
const title =
isFilingType(filing.value, FilingTypes.ALTERATION)
Expand Down

0 comments on commit 6ad0688

Please sign in to comment.