fix: list runners

This commit is contained in:
Jason Song
2022-12-12 18:38:43 +08:00
parent cc19ab5ced
commit 1c9288f3dd
5 changed files with 33 additions and 41 deletions

View File

@@ -36,11 +36,8 @@ func Runners(ctx *context.Context) {
Page: page,
PageSize: 100,
},
Sort: ctx.Req.URL.Query().Get("sort"),
Filter: ctx.Req.URL.Query().Get("q"),
WithDeleted: false,
RepoID: 0,
OwnerID: 0,
Sort: ctx.Req.URL.Query().Get("sort"),
Filter: ctx.Req.URL.Query().Get("q"),
}
common.RunnersList(ctx, tplRunners, opts)

View File

@@ -28,11 +28,10 @@ func Runners(ctx *context.Context) {
Page: page,
PageSize: 100,
},
Sort: ctx.Req.URL.Query().Get("sort"),
Filter: ctx.Req.URL.Query().Get("q"),
WithDeleted: false,
RepoID: 0,
OwnerID: ctx.Org.Organization.ID,
Sort: ctx.Req.URL.Query().Get("sort"),
Filter: ctx.Req.URL.Query().Get("q"),
OwnerID: ctx.Org.Organization.ID,
WithAvailable: true,
}
common.RunnersList(ctx, tplSettingsRunners, opts)

View File

@@ -32,11 +32,10 @@ func Runners(ctx *context.Context) {
Page: page,
PageSize: 100,
},
Sort: ctx.Req.URL.Query().Get("sort"),
Filter: ctx.Req.URL.Query().Get("q"),
WithDeleted: false,
RepoID: ctx.Repo.Repository.ID,
OwnerID: 0,
Sort: ctx.Req.URL.Query().Get("sort"),
Filter: ctx.Req.URL.Query().Get("q"),
RepoID: ctx.Repo.Repository.ID,
WithAvailable: true,
}
common.RunnersList(ctx, tplRunners, opts)