Skip to content

Commit cd48360

Browse files
lsongsusexingzhang-suse
authored andcommitted
1. Replaced hardcoded resource string with Resource constant;
2. Removed the image filter and "Download full report" button from the UI, since they don't apply to the vulnerability detail page in this release;
1 parent da9fe03 commit cd48360

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pkg/sbombastic-image-vulnerability-scanner/components/CveDetails.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
this.preprocessedDataset = this.preprocessData(this.rows);
5656
console.log("this.preprocessedDataset", this.preprocessedDataset);
5757
58-
const vulReport = await this.$store.dispatch('cluster/findAll', {type: "storage.sbombastic.rancher.io.vulnerabilityreport"})
58+
const vulReport = await this.$store.dispatch('cluster/findAll', {type: RESOURCE.VULNERABILITY_REPORT});
5959
6060
const cveId = this.$route.params.id;
6161
@@ -258,20 +258,20 @@ export default {
258258
class="severity-badge"
259259
/>
260260
</div>
261-
<div class="filter-dropdown">
262-
<LabeledSelect
263-
v-model:value="selectedImageFilter"
264-
:options="imageFilterOptions"
265-
:close-on-select="true"
266-
:multiple="false"
267-
/>
268-
</div>
269-
<div>
270-
<button class="btn role-primary">
271-
<i class="icon icon-download"></i>
272-
{{ t('imageScanner.images.downloadReport') }}
273-
</button>
274-
</div>
261+
<!-- <div class="filter-dropdown">-->
262+
<!-- <LabeledSelect-->
263+
<!-- v-model:value="selectedImageFilter"-->
264+
<!-- :options="imageFilterOptions"-->
265+
<!-- :close-on-select="true"-->
266+
<!-- :multiple="false"-->
267+
<!-- />-->
268+
<!-- </div>-->
269+
<!-- <div>-->
270+
<!-- <button class="btn role-primary">-->
271+
<!-- <i class="icon icon-download"></i>-->
272+
<!-- {{ t('imageScanner.images.downloadReport') }}-->
273+
<!-- </button>-->
274+
<!-- </div>-->
275275

276276
</div>
277277
<!-- description -->

0 commit comments

Comments
 (0)