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 @@ -2980,10 +2980,10 @@ export default {
2980
2980
if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
2981
2981
args .oscategoryid = this .form .guestoscategoryid
2982
2982
}
2983
- if (args .keyword || (args .category && args .category !== templateFilter)) {
2983
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
2984
2984
args .page = 1
2985
- args .pageSize = args .pageSize || 10
2986
2985
}
2986
+ args .pageSize = args .pageSize || 10
2987
2987
args .zoneid = _ .get (this .zone , ' id' )
2988
2988
if (this .isZoneSelectedMultiArch ) {
2989
2989
args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2602,10 +2602,10 @@ export default {
2602
2602
if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
2603
2603
args .oscategoryid = this .form .guestoscategoryid
2604
2604
}
2605
- if (args .keyword || (args .category && args .category !== templateFilter)) {
2605
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
2606
2606
args .page = 1
2607
- args .pageSize = args .pageSize || 10
2608
2607
}
2608
+ args .pageSize = args .pageSize || 10
2609
2609
args .zoneid = _ .get (this .zone , ' id' )
2610
2610
if (this .isZoneSelectedMultiArch ) {
2611
2611
args .arch = this .selectedArchitecture
@@ -2640,10 +2640,10 @@ export default {
2640
2640
if (this .isModernImageSelection && this .form .guestoscategoryid ) {
2641
2641
args .oscategoryid = this .form .guestoscategoryid
2642
2642
}
2643
- if (args .keyword || args .category !== isoFilter) {
2643
+ if (! args .page || args . keyword || ( args .category && args . category !== isoFilter) ) {
2644
2644
args .page = 1
2645
- args .pageSize = args .pageSize || 10
2646
2645
}
2646
+ args .pageSize = args .pageSize || 10
2647
2647
args .zoneid = _ .get (this .zone , ' id' )
2648
2648
if (this .isZoneSelectedMultiArch ) {
2649
2649
args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2546,10 +2546,10 @@ export default {
2546
2546
if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
2547
2547
args .oscategoryid = this .form .guestoscategoryid
2548
2548
}
2549
- if (args .keyword || (args .category && args .category !== templateFilter)) {
2549
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
2550
2550
args .page = 1
2551
- args .pageSize = args .pageSize || 10
2552
2551
}
2552
+ args .pageSize = args .pageSize || 10
2553
2553
args .zoneid = _ .get (this .zone , ' id' )
2554
2554
if (this .isZoneSelectedMultiArch ) {
2555
2555
args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -361,10 +361,10 @@ export default {
361
361
if (this .isModernImageSelection && this .selectedGuestOsCategoryId && ! [' -1' , ' 0' ].includes (this .selectedGuestOsCategoryId )) {
362
362
args .oscategoryid = this .selectedGuestOsCategoryId
363
363
}
364
- if (args .keyword || (args .category && args .category !== templateFilter)) {
364
+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
365
365
args .page = 1
366
- args .pageSize = args .pageSize || 10
367
366
}
367
+ args .pageSize = args .pageSize || 10
368
368
args .zoneid = this .resource .zoneid
369
369
args .templatefilter = templateFilter
370
370
if (this .resource .arch ) {
You can’t perform that action at this time.
0 commit comments