fix(runner-view): missing runner delete modal and routing

This commit is contained in:
fuxiaohei
2022-11-10 21:12:36 +08:00
committed by Jason Song
parent 706aed2ba6
commit 0c3f283a84
6 changed files with 64 additions and 21 deletions

View File

@@ -61,3 +61,10 @@ func ResetRunnerRegistrationToken(ctx *context.Context) {
0, ctx.Repo.Repository.ID,
ctx.Repo.RepoLink+"/settings/runners")
}
// RunnerDeletePost response for deleting runner
func RunnerDeletePost(ctx *context.Context) {
common.RunnerDeletePost(ctx, ctx.ParamsInt64(":runnerid"),
ctx.Repo.RepoLink+"/settings/runners",
ctx.Repo.RepoLink+"/settings/runners/"+url.PathEscape(ctx.Params(":runnerid")))
}