@@ -59,6 +59,10 @@ function (project, accUtils, utils, ko, i18n, screenUtils, BufferingDataProvider
5959 this . project = project ;
6060 this . i18n = i18n ;
6161
62+ this . getWkoInstalledVersion = ( ) => {
63+ wkoInstalledVersionChecker . startOperatorInstallVersionCheck ( ) . then ( ) ;
64+ } ;
65+
6266 this . projectHasModel = ( ) => {
6367 return auxImageHelper . projectHasModel ( ) ;
6468 } ;
@@ -86,13 +90,6 @@ function (project, accUtils, utils, ko, i18n, screenUtils, BufferingDataProvider
8690 return i18n . t ( `domain-design-${ labelId } ` , payload ) ;
8791 } ;
8892
89- this . smartLabelMapper = ( labelId , payload ) => {
90- if ( this . isDomainOnPV ( ) ) {
91- return i18n . t ( `domain-design-${ labelId . replace ( / ^ a u x - / , 'domain-creation-' ) } ` , payload ) ;
92- }
93- return i18n . t ( `domain-design-${ labelId } ` , payload ) ;
94- } ;
95-
9693 this . imageLabelMapper = ( labelId , payload ) => {
9794 if ( this . isDomainOnPV ( ) ) {
9895 return i18n . t ( `image-design-${ labelId . replace ( / ^ a u x - / , 'domain-creation-' ) } ` , payload ) ;
@@ -119,10 +116,6 @@ function (project, accUtils, utils, ko, i18n, screenUtils, BufferingDataProvider
119116 return false ;
120117 } , this ) ;
121118
122- this . getWkoInstalledVersion = ( ) => {
123- wkoInstalledVersionChecker . startOperatorInstallVersionCheck ( ) . then ( ) ;
124- } ;
125-
126119 this . mainCreateImageSwitchHelp = ko . computed ( ( ) => {
127120 if ( this . project . image . useAuxImage . value || this . isDomainOnPV ( ) ) {
128121 return this . imageLabelMapper ( 'create-image-aux-help' ) ;
@@ -210,11 +203,8 @@ function (project, accUtils, utils, ko, i18n, screenUtils, BufferingDataProvider
210203 } ) ;
211204
212205 this . creatingPvc = ko . computed ( ( ) => {
213- if ( this . usingDomainCreationImage ( ) && this . project . k8sDomain . createPvc . observable ( ) ) {
214- return true ;
215- }
216- return false ;
217- } ) ;
206+ return ! ! ( this . usingDomainCreationImage ( ) && this . project . k8sDomain . createPvc . observable ( ) ) ;
207+ } , this ) ;
218208
219209 this . pvcNameHelpText = ko . computed ( ( ) => {
220210 if ( this . creatingPvc ( ) ) {
@@ -271,7 +261,11 @@ function (project, accUtils, utils, ko, i18n, screenUtils, BufferingDataProvider
271261 this . auxImageConfig = ko . observable ( this . computeAuxImageConfig ( ) ) ;
272262
273263 this . getAuxImageDecision = ko . computed ( ( ) => {
274- return this . smartLabelMapper ( `aux-image-config-${ this . auxImageConfig ( ) } -label` ) ;
264+ let imageTag = `aux-image-config-${ this . auxImageConfig ( ) } -label` ;
265+ if ( this . isDomainOnPV ( ) ) {
266+ imageTag = imageTag . replace ( / ^ a u x - / , 'domain-creation-' ) ;
267+ }
268+ return this . labelMapper ( imageTag ) ;
275269 } ) ;
276270
277271 this . integerConverter = new ojConverterNumber . IntlNumberConverter ( {
@@ -294,14 +288,14 @@ function (project, accUtils, utils, ko, i18n, screenUtils, BufferingDataProvider
294288 { key : 'WLS' , label : i18n . t ( 'image-design-wls-domain-type-label' ) } ,
295289 { key : 'RestrictedJRF' , label : i18n . t ( 'image-design-restricted-jrf-domain-type-label' ) } ,
296290 ] ;
297- } ) ;
291+ } , this ) ;
298292
299293 this . wdtDomainTypesDP = ko . computed ( ( ) => {
300294 if ( this . usingDomainCreationImage ( ) ) {
301295 return new ArrayDataProvider ( this . wdtDomainTypes ( ) , { keyAttributes : 'value' } ) ;
302296 }
303297 return new ArrayDataProvider ( this . wdtDomainTypes ( ) , { keyAttributes : 'key' } ) ;
304- } ) ;
298+ } , this ) ;
305299
306300 this . showRcuSwitch = ko . computed ( ( ) => {
307301 if ( this . usingDomainCreationImage ( ) ) {
0 commit comments