File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -2146,19 +2146,11 @@ export default {
21462146 },
21472147 changeArchitecture (arch ) {
21482148 this .selectedArchitecture = arch
2149- if (this .isModernImageSelection ) {
2150- this .fetchGuestOsCategories ()
2151- return
2152- }
2153- this .fetchImages ()
2149+ this .updateImages ()
21542150 },
21552151 changeImageType (imageType ) {
21562152 this .imageType = imageType
2157- if (this .isModernImageSelection ) {
2158- this .fetchGuestOsCategories ()
2159- } else {
2160- this .fetchImages ()
2161- }
2153+ this .updateImages ()
21622154 },
21632155 handleSubmitAndStay (e ) {
21642156 this .form .stayonpage = true
@@ -2821,6 +2813,13 @@ export default {
28212813 this .handleComputeResourceSelected (host)
28222814 }
28232815 },
2816+ updateImages () {
2817+ if (this .isModernImageSelection ) {
2818+ this .fetchGuestOsCategories ()
2819+ return
2820+ }
2821+ this .fetchImages ()
2822+ },
28242823 handleComputeResourceSelected (computeResource ) {
28252824 if (! computeResource) {
28262825 this .selectedExtensionId = null
@@ -2844,11 +2843,7 @@ export default {
28442843 if (needArchChange) {
28452844 this .selectedArchitecture = resourceArch
28462845 }
2847- if (this .isModernImageSelection ) {
2848- this .fetchGuestOsCategories ()
2849- return
2850- }
2851- this .fetchImages ()
2846+ this .updateImages ()
28522847 },
28532848 onSelectGuestOsCategory (value ) {
28542849 this .form .guestoscategoryid = value
You can’t perform that action at this time.
0 commit comments