Browse Source

Merge branch 'V20220601' into fix-2054

tags/v1.22.5.2^2
zhoupzh 3 years ago
parent
commit
43857ae4b2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/repo/setting.go

+ 3
- 1
routers/repo/setting.go View File

@@ -484,7 +484,9 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
return
} else {
if count >= 1 {
ctx.RenderWithErr(ctx.Tr("repo.settings.deletion_notice_cloudbrain"), tplSettingsOptions, nil)
ctx.Data["Err_RepoName"] = nil
ctx.Flash.Error(ctx.Tr("repo.settings.deletion_notice_cloudbrain"))
ctx.Redirect(ctx.Repo.RepoLink + "/settings")
return
}
if err := repo_service.DeleteRepository(ctx.User, ctx.Repo.Repository); err != nil {


Loading…
Cancel
Save