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 {
29802980 if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
29812981 args .oscategoryid = this .form .guestoscategoryid
29822982 }
2983- if (args .keyword || (args .category && args .category !== templateFilter)) {
2983+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
29842984 args .page = 1
2985- args .pageSize = args .pageSize || 10
29862985 }
2986+ args .pageSize = args .pageSize || 10
29872987 args .zoneid = _ .get (this .zone , ' id' )
29882988 if (this .isZoneSelectedMultiArch ) {
29892989 args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2602,10 +2602,10 @@ export default {
26022602 if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
26032603 args .oscategoryid = this .form .guestoscategoryid
26042604 }
2605- if (args .keyword || (args .category && args .category !== templateFilter)) {
2605+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
26062606 args .page = 1
2607- args .pageSize = args .pageSize || 10
26082607 }
2608+ args .pageSize = args .pageSize || 10
26092609 args .zoneid = _ .get (this .zone , ' id' )
26102610 if (this .isZoneSelectedMultiArch ) {
26112611 args .arch = this .selectedArchitecture
@@ -2640,10 +2640,10 @@ export default {
26402640 if (this .isModernImageSelection && this .form .guestoscategoryid ) {
26412641 args .oscategoryid = this .form .guestoscategoryid
26422642 }
2643- if (args .keyword || args .category !== isoFilter) {
2643+ if (! args .page || args . keyword || ( args .category && args . category !== isoFilter) ) {
26442644 args .page = 1
2645- args .pageSize = args .pageSize || 10
26462645 }
2646+ args .pageSize = args .pageSize || 10
26472647 args .zoneid = _ .get (this .zone , ' id' )
26482648 if (this .isZoneSelectedMultiArch ) {
26492649 args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2546,10 +2546,10 @@ export default {
25462546 if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
25472547 args .oscategoryid = this .form .guestoscategoryid
25482548 }
2549- if (args .keyword || (args .category && args .category !== templateFilter)) {
2549+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
25502550 args .page = 1
2551- args .pageSize = args .pageSize || 10
25522551 }
2552+ args .pageSize = args .pageSize || 10
25532553 args .zoneid = _ .get (this .zone , ' id' )
25542554 if (this .isZoneSelectedMultiArch ) {
25552555 args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -361,10 +361,10 @@ export default {
361361 if (this .isModernImageSelection && this .selectedGuestOsCategoryId && ! [' -1' , ' 0' ].includes (this .selectedGuestOsCategoryId )) {
362362 args .oscategoryid = this .selectedGuestOsCategoryId
363363 }
364- if (args .keyword || (args .category && args .category !== templateFilter)) {
364+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
365365 args .page = 1
366- args .pageSize = args .pageSize || 10
367366 }
367+ args .pageSize = args .pageSize || 10
368368 args .zoneid = this .resource .zoneid
369369 args .templatefilter = templateFilter
370370 if (this .resource .arch ) {
You can’t perform that action at this time.
0 commit comments