|
60 | 60 | <div id="cve-cna-cve-program-containers"> |
61 | 61 | <h2 class="title">Required CVE Record Information</h2> |
62 | 62 | <AdpVulnerabilityEnrichment v-if="Object.keys(cnaContainer).length > 0" role="cna" :selectedCnaData="cveFieldList" |
63 | | - :containerObject="cnaContainer" :orgId="`cna-${cnaContainer.providerMetadata.orgId}`" :anchorId="cnaContainer.onPageMenu.anchorId" |
64 | | - > |
65 | | - <h1 class="mb-1 has-text-white cve-capitalize-first-letter">{{ cnaContainer.onPageMenu.label }}</h1> |
| 63 | + :containerObject="cnaContainer" :orgId="`cna-${cnaContainer.providerMetadata.orgId}`" :anchorId="cnaContainer.onPageMenu.anchorId"> |
| 64 | + <h1 class="mb-1 has-text-white cve-capitalize-first-letter"> |
| 65 | + <span v-if="!isLoading">{{ cnaContainer.onPageMenu.label }} </span> |
| 66 | + <span v-else> |
| 67 | + <span class="icon"> |
| 68 | + <span class="loader is-loading"/> |
| 69 | + </span> |
| 70 | + <span class="ml-2">Loading...</span> |
| 71 | + </span> |
| 72 | + </h1> |
66 | 73 | </AdpVulnerabilityEnrichment> |
67 | 74 | <!-- <AdpVulnerabilityEnrichment v-if="!useCveRecordLookupStore.hasHistoricalReferences" role="cna" :containerObject="cnaContainer"></AdpVulnerabilityEnrichment> --> |
68 | 75 | <AdpVulnerabilityEnrichment v-if="Object.keys(cveProgramContainer).length > 0" role='cveProgram' |
|
81 | 88 | <AdpVulnerabilityEnrichment v-if="adpContainer.providerMetadata.shortName === 'CISA-ADP'" role="adp" :selectedCnaData="{}" |
82 | 89 | :containerObject="adpContainer" :orgId="`adp-${adpContainer.providerMetadata.orgId}`" :anchorId="adpContainer.onPageMenu.anchorId" |
83 | 90 | > |
84 | | - <h1 class="mb-1 has-text-white cve-capitalize-first-letter">{{ adpContainer.onPageMenu.label }}</h1> |
| 91 | + <h1 class="mb-1 has-text-white cve-capitalize-first-letter"> |
| 92 | + <span v-if="!isLoading">{{ adpContainer.onPageMenu.label }}</span> |
| 93 | + <span v-else> |
| 94 | + <span class="icon"> |
| 95 | + <span class="loader is-loading"/> |
| 96 | + </span> |
| 97 | + <span class="ml-2">Loading...</span> |
| 98 | + </span> |
| 99 | + </h1> |
85 | 100 | </AdpVulnerabilityEnrichment> |
86 | 101 | <!-- <div v-for="(adpContainer) in cveFieldList.productsStatus.adp" :key="adpContainer.key" |
87 | 102 | class="mt-5" |
@@ -117,6 +132,7 @@ export default { |
117 | 132 | }, |
118 | 133 | data() { |
119 | 134 | return { |
| 135 | + isLoading: false, |
120 | 136 | isMessageExpanded: false, |
121 | 137 | isHelpTestShown: false, |
122 | 138 | cveRecordFields: ['ID', 'CNA', 'Credits', 'Description', 'References', 'State', 'Tags', 'Title', 'VendorsProductsVersions', |
@@ -577,9 +593,11 @@ export default { |
577 | 593 | }, |
578 | 594 | }, |
579 | 595 | async beforeMount() { |
| 596 | + this.isLoading = true |
580 | 597 | await this.getOrgIdAndLongNameMap().finally(() =>{ |
581 | 598 | this.initializeFields(); |
582 | 599 | this.setupContainersAccordionStateOnPageMenu(); |
| 600 | + this.isLoading = false; |
583 | 601 | }); |
584 | 602 | }, |
585 | 603 | created () { |
|
0 commit comments