summaryrefslogtreecommitdiff
path: root/elm/Lib/Api.elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-06-10 10:05:06 +0200
committerYorhel <git@yorhel.nl>2020-06-10 10:05:09 +0200
commita5ebf78c6017f849883a687ca992784cf8cebc31 (patch)
treef5345c488ce8293af1b744380251e1a947d4314e /elm/Lib/Api.elm
parent3f42102ab7a0a2031e90f496496fde31389f7c53 (diff)
VNWeb::Elm: Return a special message when the editsum validation fails
Because, apparently, some browsers ignore the client-side HTML5 validation attributes for textareas and some people will never learn that the edit summary is a required field.
Diffstat (limited to 'elm/Lib/Api.elm')
-rw-r--r--elm/Lib/Api.elm1
1 files changed, 1 insertions, 0 deletions
diff --git a/elm/Lib/Api.elm b/elm/Lib/Api.elm
index 5ba82325..4af28ea6 100644
--- a/elm/Lib/Api.elm
+++ b/elm/Lib/Api.elm
@@ -30,6 +30,7 @@ showResponse res =
Redirect _ -> unexp
CSRF -> "Invalid CSRF token, please refresh the page and try again."
Invalid -> "Invalid form data, please report a bug."
+ Editsum -> "Invalid edit summary."
Unauth -> "You do not have the permission to perform this action."
Unchanged -> "No changes"
Content _ -> unexp