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