File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
pkg/sbombastic-image-vulnerability-scanner/components Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 24
24
{{ t('imageScanner.general.refresh') }}
25
25
</button >
26
26
<ScanButton :selectedRegistries =" [{name: $route.params.id, namespace: $route.params.ns}]" :reloadFn =" loadData" />
27
+ <ActionMenu
28
+ v-if =" registry"
29
+ button-role =" multiAction"
30
+ :resource =" registry"
31
+ data-testid =" masthead-action-menu"
32
+ :button-aria-label =" t('component.resource.detail.titleBar.ariaLabel.actionMenu', { resource: RESOURCE.REGISTRY })"
33
+ />
27
34
</div >
28
35
</div >
29
36
<RancherMeta :properties =" registryMetadata" />
36
43
import { BadgeState } from ' @rancher/components' ;
37
44
import { PRODUCT_NAME , RESOURCE , PAGE } from ' @sbombastic-image-vulnerability-scanner/types' ;
38
45
import ResourceTable from " @shell/components/ResourceTable" ;
46
+ import ActionMenu from ' @shell/components/ActionMenuShell.vue' ;
39
47
import RancherMeta from ' ./common/RancherMeta.vue' ;
40
48
import RegisterStatusBadge from ' ./common/RegisterStatusBadge.vue' ;
41
49
import RegistryDetailScanTable from ' ./RegistryDetailScanTable.vue' ;
49
57
RancherMeta,
50
58
RegisterStatusBadge,
51
59
RegistryDetailScanTable,
52
- ScanButton
60
+ ScanButton,
61
+ ActionMenu
53
62
},
54
63
data () {
55
64
return {
56
65
PRODUCT_NAME ,
57
66
RESOURCE ,
58
67
PAGE ,
68
+ registry: null ,
59
69
registryStatus: null ,
60
70
registryMetadata: [],
61
71
scanHistory: [],
122
132
}
123
133
})
124
134
});
135
+ this .registry = registry;
125
136
},
126
137
getRegistryStatus (registry ) {
127
138
if (! registry || ! registry .status || ! registry .status .conditions || ! registry .status .conditions .length ) {
217
228
display: flex;
218
229
align- items: center;
219
230
gap: 16px ;
231
+
232
+ & : deep () button[data- testid= " masthead-action-menu" ] {
233
+ border- radius: 4px ;
234
+ width: 35px ;
235
+ height: 40px ;
236
+
237
+ display: inline- flex;
238
+ flex- direction: row;
239
+ justify- content: center;
240
+ align- items: center;
241
+ }
220
242
}
221
243
}
222
244
}
You can’t perform that action at this time.
0 commit comments