Skip to content

Commit fceb522

Browse files
committed
donot pass category icons in ui
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 3139ece commit fceb522

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

ui/src/views/compute/wizard/OsBasedImageRadioGroup.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
class="radio-group__radio"
3434
:value="item.id">
3535
<resource-icon
36-
v-if="(item.icon && item.icon.base64image) || categoryIcon"
36+
v-if="item.icon && item.icon.base64image"
3737
class="radio-group__os-logo"
38-
:image="(item.icon && item.icon.base64image) ? item.icon.base64image : categoryIcon"
38+
:image="item.icon.base64image"
3939
size="2x" />
4040
<os-logo
4141
v-else
@@ -111,10 +111,6 @@ export default {
111111
type: Array,
112112
default: () => []
113113
},
114-
categoryIcon: {
115-
type: String,
116-
default: ''
117-
},
118114
inputDecorator: {
119115
type: String,
120116
default: ''

ui/src/views/compute/wizard/OsBasedImageSelection.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
<a-spin :spinning="imagesLoading">
8181
<os-based-image-radio-group
8282
:imagesList="imagesList"
83-
:categoryIcon="selectedCategoryIcon"
8483
:itemCount="imagesCount"
8584
:input-decorator="localSelectedImageType"
8685
:selected="selectedImageId"
@@ -271,13 +270,6 @@ export default {
271270
categoryFontAwesomeIconStyle () {
272271
return [this.$store.getters.darkMode ? { color: 'rgba(255, 255, 255, 0.65)' } : { color: '#666' }]
273272
},
274-
selectedCategoryIcon () {
275-
const id = this.selectedCategory?.id
276-
if (!id || ['-1', '0'].includes(id)) {
277-
return ''
278-
}
279-
return this.selectedCategory.icon?.base64image || ''
280-
},
281273
searchFiltersDisabled () {
282274
return this.selectedCategory?.disableimagefilters
283275
}

0 commit comments

Comments
 (0)