|
5 | 5 | <slot></slot> |
6 | 6 | <button class="button message-header-button" |
7 | 7 | :style="{'background-color': '#162e51 !important', 'color': 'white !important'}" |
8 | | - :aria-expanded="useCveRecordLookupStore.accordionState[organizationId] ? 'true' : 'false'" |
| 8 | + :aria-expanded="usecveRecordStore.accordionState[organizationId] ? 'true' : 'false'" |
9 | 9 | :aria-controls="`${organizationId}-panel`" |
10 | 10 | > |
11 | 11 | <span class="icon is-small"> |
12 | 12 | <p :id="`expandCollapseAltText-${organizationId}`" class="is-hidden"> |
13 | | - {{useCveRecordLookupStore.accordionState[organizationId] ? 'expand' : 'collapse'}} |
| 13 | + {{usecveRecordStore.accordionState[organizationId] ? 'expand' : 'collapse'}} |
14 | 14 | </p> |
15 | | - <font-awesome-icon :icon="useCveRecordLookupStore.accordionState[organizationId] ? 'minus' : 'plus'" |
| 15 | + <font-awesome-icon :icon="usecveRecordStore.accordionState[organizationId] ? 'minus' : 'plus'" |
16 | 16 | aria-hidden="false" focusable="true" :aria-labelledby="`expandCollapseAltText-${organizationId}`" |
17 | 17 | /> |
18 | 18 | </span> |
19 | 19 | </button> |
20 | 20 | </button> |
21 | 21 | <!-- Panel content is conditionally determined by role --> |
22 | | - <div :id="`${organizationId}-panel`" v-if="useCveRecordLookupStore.accordionState[organizationId]" |
| 22 | + <div :id="`${organizationId}-panel`" v-if="usecveRecordStore.accordionState[organizationId]" |
23 | 23 | class="pl-3 pr-3 pt-2 pb-5 cve-container-accordion-panel" |
24 | 24 | > |
25 | 25 | <div> |
|
210 | 210 | </template> |
211 | 211 |
|
212 | 212 | <script> |
213 | | -import { useCveRecordLookupStore } from '@/stores/cveRecordLookup.ts'; |
| 213 | +import { usecveRecordStore } from '@/stores/cveRecord.ts'; |
| 214 | +import { useGenericGlobalsStore } from '@/stores/genericGlobals'; |
214 | 215 | import ProductStatus from '@/components/ProductStatus.vue'; |
215 | 216 | import CveRecordReferences from './CveRecordReferences.vue'; |
216 | 217 |
|
@@ -255,13 +256,13 @@ export default { |
255 | 256 | //to do |
256 | 257 | adpShortName: this.containerObject.providerMetadata.shortName, |
257 | 258 | dateUpdated: '', |
258 | | - cveServicesBaseUrl: import.meta.env.VITE_CVE_SERVICES_BASE_URL, |
259 | | - useCveRecordLookupStore: useCveRecordLookupStore(), |
| 259 | + cveServicesBaseUrl: useGenericGlobalsStore().currentServicesUrl, |
| 260 | + usecveRecordStore: usecveRecordStore(), |
260 | 261 | } |
261 | 262 | }, |
262 | 263 | methods: { |
263 | 264 | togglePanel(){ |
264 | | - useCveRecordLookupStore().accordionState[this.organizationId] = !useCveRecordLookupStore().accordionState[this.organizationId]; |
| 265 | + usecveRecordStore().accordionState[this.organizationId] = !usecveRecordStore().accordionState[this.organizationId]; |
265 | 266 | }, |
266 | 267 | hasEnrichmentData(){ |
267 | 268 | if (this.cwes.length > 0 || this.cvsss.length > 0 || this.kevs.length > 0 || this.ssvcs.length > 0) { |
@@ -406,8 +407,8 @@ export default { |
406 | 407 | } |
407 | 408 | }, |
408 | 409 | getCveProgramReferences(){ |
409 | | - if (this.containerObject.providerMetadata.shortName.toLowerCase() !== useCveRecordLookupStore().cveProgramShortName) return; |
410 | | - this.cveProgramReferences = useCveRecordLookupStore().getReferences(this.containerObject.references); |
| 410 | + if (this.containerObject.providerMetadata.shortName.toLowerCase() !== usecveRecordStore().cveProgramShortName) return; |
| 411 | + this.cveProgramReferences = usecveRecordStore().getReferences(this.containerObject.references); |
411 | 412 | }, |
412 | 413 | getUpdatedDate() { |
413 | 414 | this.dateUpdated = this.getDate(this.containerObject.providerMetadata.dateUpdated); |
|
0 commit comments