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

@@ -62,3 +62,11 @@ func RunnersEditPost(ctx *context.Context) {
ctx.Org.Organization.ID, 0,
ctx.Org.OrgLink+"/settings/runners/"+url.PathEscape(ctx.Params(":runnerid")))
}
// RunnerDeletePost response for deleting runner
func RunnerDeletePost(ctx *context.Context) {
common.RunnerDeletePost(ctx,
ctx.ParamsInt64(":runnerid"),
ctx.Org.OrgLink+"/settings/runners",
ctx.Org.OrgLink+"/settings/runners/"+url.PathEscape(ctx.Params(":runnerid")))
}