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

This commit is contained in:
fuxiaohei
2022-11-25 17:48:47 +08:00
committed by Jason Song
parent 706aed2ba6
commit 0c3f283a84
6 changed files with 64 additions and 21 deletions
+8
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")))
}