Skip to content

Commit

Permalink
feat: remind user to attach an image file
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Nov 10, 2023
1 parent eb171af commit 14112ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions landa/water_body_management/doctype/custom_icon/custom_icon.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (c) 2023, ALYF GmbH and contributors
// For license information, please see license.txt

frappe.ui.form.on('Custom Icon', {
// refresh: function(frm) {

// }
frappe.ui.form.on("Custom Icon", {
refresh: function (frm) {
if (!frm.is_new() && !frm.doc.icon) {
frm.dashboard.set_headline(__("Please attach an icon file."));
}
},
});

0 comments on commit 14112ae

Please sign in to comment.