From 17fbbe97d7b4fca45d112f924191600eff52957b Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 29 Aug 2020 22:32:46 +0100 Subject: Do not disable commit changes button on repost (#12644) If the user has pressed commit changes and the post has failed - do not disable the commit changes button. Fix #12072 Signed-off-by: Andrew Thornton --- routers/repo/editor.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers') diff --git a/routers/repo/editor.go b/routers/repo/editor.go index f91ce1b462..6a3f379f6a 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -184,6 +184,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo } ctx.Data["PageIsEdit"] = true + ctx.Data["PageHasPosted"] = true ctx.Data["IsNewFile"] = isNewFile ctx.Data["RequireHighlightJS"] = true ctx.Data["RequireSimpleMDE"] = true -- cgit v1.2.3