@@ -5,7 +5,14 @@ import { Banner } from '@components/Banner';
5
5
import AsyncButton from ' @shell/components/AsyncButton' ;
6
6
import { randomStr , CHARSET } from ' @shell/utils/string' ;
7
7
import { ELEMENTAL_SCHEMA_IDS } from ' ../config/elemental-types' ;
8
- import { getOperatorVersion , checkGatedFeatureCompatibility , BUILD_MEDIA_RAW_SUPPORT } from ' ../utils/feature-versioning' ;
8
+ import {
9
+ getOperatorVersion ,
10
+ checkGatedFeatureCompatibility ,
11
+ BUILD_MEDIA_RAW_SUPPORT ,
12
+ CHANNEL_NO_LONGER_IN_SYNC ,
13
+ ALL_AREAS ,
14
+ ALL_MODES ,
15
+ } from ' ../utils/feature-versioning' ;
9
16
10
17
export const MEDIA_TYPES = {
11
18
RAW : {
@@ -88,14 +95,17 @@ export default {
88
95
this .filteredManagedOsVersions = this .managedOsVersions .filter (v => v .spec ? .type === selectedFilterType) || [];
89
96
this .buildMediaOsVersions = this .filteredManagedOsVersions .map ((f ) => {
90
97
return {
91
- label: ` ${ f .spec ? .metadata ? .displayName } ${ f .spec ? .version } ${ typeof f .inSync === ' boolean' && ! f .inSync ? ' (deprecated)' : ' ' }` ,
98
+ label: ` ${ f .spec ? .metadata ? .displayName } ${ f .spec ? .version } ${ this . supportChannelNoLongerInSync && typeof f .inSync === ' boolean' && ! f .inSync ? ' (deprecated)' : ' ' }` ,
92
99
value: neu === MEDIA_TYPES.ISO.type ? f.spec?.metadata?.uri : f.spec?.metadata?.upgradeImage,
93
100
};
94
101
});
95
102
}
96
103
}
97
104
},
98
105
computed: {
106
+ supportChannelNoLongerInSync() {
107
+ return checkGatedFeatureCompatibility(ALL_AREAS, ALL_MODES, CHANNEL_NO_LONGER_IN_SYNC, this.operatorVersion);
108
+ },
99
109
isRawDiskImageBuildSupported() {
100
110
const check = checkGatedFeatureCompatibility(this.resource, this.mode, BUILD_MEDIA_RAW_SUPPORT, this.operatorVersion);
101
111
0 commit comments