File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
pkg/sbombastic-image-vulnerability-scanner Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import DetailPage from ' @shell/components/Resource/Detail/Page.vue' ;
3
3
import Masthead from ' @shell/components/Resource/Detail/Masthead/index.vue' ;
4
+ import Date from ' @shell/components/formatter/Date.vue' ;
4
5
import { useStore } from ' vuex' ;
5
6
import { useI18n } from ' @shell/composables/useI18n' ;
6
7
import UriExternalLink from ' @sbombastic-image-vulnerability-scanner/formatters/UriExternalLink.vue' ;
@@ -21,6 +22,7 @@ const defaultMastheadProps = computed(() => {
21
22
resourceName: vexhub .metadata .name ,
22
23
resourceTypeLabel: t (' imageScanner.vexManagement.title' ),
23
24
resourceTo: vexhub .listLocation ,
25
+ description: t (' imageScanner.vexManagement.detail.description' ),
24
26
badge: {
25
27
color: vexhub .spec .enabled ? (' bg-success' as ' bg-success' ) : (' bg-error' as ' bg-error' ),
26
28
label: t (` imageScanner.enum.status.${vexhub .spec .enabled ? ' enabled' : ' disabled' } ` )
@@ -47,11 +49,17 @@ const defaultMastheadProps = computed(() => {
47
49
},
48
50
{
49
51
label: ' Last sync' ,
50
- value: null
52
+ value: undefined , // TODO: Add last sync time when backend supports it
51
53
},
52
54
{
53
55
label: ' Updated' ,
54
- value: vexhub .metadata .creationTimestamp
56
+ value: vexhub .metadata .creationTimestamp ,
57
+ valueOverride: {
58
+ component: Date ,
59
+ props: {
60
+ value: vexhub .metadata .creationTimestamp ,
61
+ }
62
+ }
55
63
}
56
64
],
57
65
annotations: [],
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ imageScanner:
136
136
enable :
137
137
label : Enabled
138
138
tooltip : Controls whether this VEX entry is active in vulnerability assessments.
139
+ detail :
140
+ description : VEX management hub description, if any
139
141
enum :
140
142
cve :
141
143
critical : Critical
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export default class SbombasticRancherIoVexhub extends SteveModel {
14
14
'downloadyaml' ,
15
15
'viewYaml' ,
16
16
'goToViewYaml' ,
17
- 'viewInApi'
17
+ 'viewInApi' ,
18
+ 'showConfiguration' ,
18
19
] ) ;
19
20
out = out . filter ( ( a ) => ! a ?. action || ! remove . has ( a . action ) ) ;
20
21
You can’t perform that action at this time.
0 commit comments