File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2981,10 +2981,10 @@ export default {
29812981 if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
29822982 args .oscategoryid = this .form .guestoscategoryid
29832983 }
2984- if (args .keyword || (args .category && args .category !== templateFilter)) {
2984+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
29852985 args .page = 1
2986- args .pageSize = args .pageSize || 10
29872986 }
2987+ args .pageSize = args .pageSize || 10
29882988 args .zoneid = _ .get (this .zone , ' id' )
29892989 if (this .isZoneSelectedMultiArch ) {
29902990 args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2977,10 +2977,10 @@ export default {
29772977 if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
29782978 args .oscategoryid = this .form .guestoscategoryid
29792979 }
2980- if (args .keyword || (args .category && args .category !== templateFilter)) {
2980+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
29812981 args .page = 1
2982- args .pageSize = args .pageSize || 10
29832982 }
2983+ args .pageSize = args .pageSize || 10
29842984 args .zoneid = _ .get (this .zone , ' id' )
29852985 if (this .isZoneSelectedMultiArch ) {
29862986 args .arch = this .selectedArchitecture
@@ -3016,10 +3016,10 @@ export default {
30163016 if (this .isModernImageSelection && this .form .guestoscategoryid ) {
30173017 args .oscategoryid = this .form .guestoscategoryid
30183018 }
3019- if (args .keyword || args .category !== isoFilter) {
3019+ if (! args .page || args . keyword || ( args .category && args . category !== isoFilter) ) {
30203020 args .page = 1
3021- args .pageSize = args .pageSize || 10
30223021 }
3022+ args .pageSize = args .pageSize || 10
30233023 args .zoneid = _ .get (this .zone , ' id' )
30243024 if (this .isZoneSelectedMultiArch ) {
30253025 args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -2554,10 +2554,10 @@ export default {
25542554 if (this .isModernImageSelection && this .form .guestoscategoryid && ! [' -1' , ' 0' ].includes (this .form .guestoscategoryid )) {
25552555 args .oscategoryid = this .form .guestoscategoryid
25562556 }
2557- if (args .keyword || (args .category && args .category !== templateFilter)) {
2557+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
25582558 args .page = 1
2559- args .pageSize = args .pageSize || 10
25602559 }
2560+ args .pageSize = args .pageSize || 10
25612561 args .zoneid = _ .get (this .zone , ' id' )
25622562 if (this .isZoneSelectedMultiArch ) {
25632563 args .arch = this .selectedArchitecture
Original file line number Diff line number Diff line change @@ -363,10 +363,10 @@ export default {
363363 if (this .isModernImageSelection && this .selectedGuestOsCategoryId && ! [' -1' , ' 0' ].includes (this .selectedGuestOsCategoryId )) {
364364 args .oscategoryid = this .selectedGuestOsCategoryId
365365 }
366- if (args .keyword || (args .category && args .category !== templateFilter)) {
366+ if (! args . page || args .keyword || (args .category && args .category !== templateFilter)) {
367367 args .page = 1
368- args .pageSize = args .pageSize || 10
369368 }
369+ args .pageSize = args .pageSize || 10
370370 args .zoneid = this .resource .zoneid
371371 args .templatefilter = templateFilter
372372 args .isready = true
You can’t perform that action at this time.
0 commit comments