2
2
import CreateEditView from ' @shell/mixins/create-edit-view' ;
3
3
import Footer from ' @shell/components/form/Footer' ;
4
4
import { LabeledInput } from ' @components/Form/LabeledInput' ;
5
- import { RadioGroup } from ' @components/Form/Radio' ;
6
5
import NameNsDescription from ' @shell/components/form/NameNsDescription' ;
7
6
import CruResource from ' @shell/components/CruResource' ;
8
7
import SelectOrCreateAuthSecret from ' @shell/components/form/SelectOrCreateAuthSecret' ;
@@ -21,7 +20,6 @@ export default {
21
20
22
21
components: {
23
22
Footer,
24
- RadioGroup,
25
23
LabeledInput,
26
24
NameNsDescription,
27
25
CruResource,
@@ -54,11 +52,6 @@ export default {
54
52
},
55
53
56
54
computed: {
57
- namespace (){
58
- console .log (' this.value.spec.type:' ,this .value .spec .type );
59
- return this .value .spec .type === ' ecr' ? " kube-system" : " "
60
- },
61
-
62
55
inStore () {
63
56
return this .$store .getters [' currentProduct' ]? .inStore || MANAGEMENT ;
64
57
},
@@ -163,16 +156,25 @@ export default {
163
156
< div class = " row" >
164
157
< div class = " col span-6" >
165
158
< LabeledSelect
159
+ data- testid= " registry-scanning-repository-names"
166
160
v- model: value= " value.spec.repositories"
167
- : options= " value.spec.repositories"
161
+ : taggable= " true"
162
+ : searchable= " true"
163
+ : push- tags= " true"
164
+ : close- on- select= " false"
165
+ : mode= " mode"
166
+ : multiple= " true"
167
+ : label= " t('imageScanner.registries.configuration.cru.scan.repoName')"
168
168
: placeholder= " t('imageScanner.registries.configuration.cru.scan.placeholder')"
169
- : label= " t('imageScanner.registries.configuration.cru.scan.type')"
169
+ : options= " value.spec.repositories"
170
+ : disabled= " mode==='view'"
171
+ @update: value= " update"
170
172
/ >
171
173
< / div>
172
174
< div class = " col span-3" >
173
175
< LabeledSelect
174
176
v- model: value= " value.spec.scanInterval"
175
- data- testid= " registry-scan -interval-select"
177
+ data- testid= " registry-scanning -interval-select"
176
178
: options = " SCAN_INTERVAL_OPTIONS"
177
179
option- key= " value"
178
180
option- label= " label"
0 commit comments