File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2981,10 +2981,10 @@ export default {
2981
2981
if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
2982
2982
args .oscategoryid = this .form .guestoscategoryid
2983
2983
}
2984
- if (args .keyword || (args .category && args .category !== templateFilter)) {
2984
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
2985
2985
args .page = 1
2986
- args .pageSize = args .pageSize || 10
2987
2986
}
2987
+ args .pageSize = args .pageSize || 10
2988
2988
args .zoneid = _ .get (this .zone , ' id' )
2989
2989
if (this .isZoneSelectedMultiArch ) {
2990
2990
args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2977,10 +2977,10 @@ export default {
2977
2977
if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
2978
2978
args .oscategoryid = this .form .guestoscategoryid
2979
2979
}
2980
- if (args .keyword || (args .category && args .category !== templateFilter)) {
2980
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
2981
2981
args .page = 1
2982
- args .pageSize = args .pageSize || 10
2983
2982
}
2983
+ args .pageSize = args .pageSize || 10
2984
2984
args .zoneid = _ .get (this .zone , ' id' )
2985
2985
if (this .isZoneSelectedMultiArch ) {
2986
2986
args .arch = this .selectedArchitecture
@@ -3016,10 +3016,10 @@ export default {
3016
3016
if (this .isModernImageSelection && this .form .guestoscategoryid ) {
3017
3017
args .oscategoryid = this .form .guestoscategoryid
3018
3018
}
3019
- if (args .keyword || args .category !== isoFilter) {
3019
+ if (! args .page || args . keyword || ( args .category && args . category !== isoFilter) ) {
3020
3020
args .page = 1
3021
- args .pageSize = args .pageSize || 10
3022
3021
}
3022
+ args .pageSize = args .pageSize || 10
3023
3023
args .zoneid = _ .get (this .zone , ' id' )
3024
3024
if (this .isZoneSelectedMultiArch ) {
3025
3025
args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2554,10 +2554,10 @@ export default {
2554
2554
if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
2555
2555
args .oscategoryid = this .form .guestoscategoryid
2556
2556
}
2557
- if (args .keyword || (args .category && args .category !== templateFilter)) {
2557
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
2558
2558
args .page = 1
2559
- args .pageSize = args .pageSize || 10
2560
2559
}
2560
+ args .pageSize = args .pageSize || 10
2561
2561
args .zoneid = _ .get (this .zone , ' id' )
2562
2562
if (this .isZoneSelectedMultiArch ) {
2563
2563
args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -363,10 +363,10 @@ export default {
363
363
if (this .isModernImageSelection && this .selectedGuestOsCategoryId && ! [' -1' , ' 0' ].includes (this .selectedGuestOsCategoryId )) {
364
364
args .oscategoryid = this .selectedGuestOsCategoryId
365
365
}
366
- if (args .keyword || (args .category && args .category !== templateFilter)) {
366
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
367
367
args .page = 1
368
- args .pageSize = args .pageSize || 10
369
368
}
369
+ args .pageSize = args .pageSize || 10
370
370
args .zoneid = this .resource .zoneid
371
371
args .templatefilter = templateFilter
372
372
args .isready = true
You can’t perform that action at this time.
0 commit comments