chore: add client-side empty comment validation

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-07-02 19:28:08 +05:30
parent 109c7a1ce8
commit 491be746c8
No known key found for this signature in database
GPG key ID: 75507BE256F40CED

View file

@ -91,7 +91,7 @@
route: "{{ pathname }}",
}
if(!args.comment) {
if(!args.comment || !args.comment.trim()) {
frappe.msgprint("{{ _("Please add a valid comment.") }}");
return false;
}