diff --git a/frappe/desk/doctype/number_card/number_card.js b/frappe/desk/doctype/number_card/number_card.js index 5ad5d76ac8..d5a743818a 100644 --- a/frappe/desk/doctype/number_card/number_card.js +++ b/frappe/desk/doctype/number_card/number_card.js @@ -112,7 +112,6 @@ frappe.ui.form.on('Number Card', { }, set_method_description: function(frm) { - console.log('called'); if (frm.doc.type == 'Custom') { frm.fields_dict.method.set_description(` Set the path to a whitelisted function that will return the number on the card in the format: @@ -122,7 +121,7 @@ frappe.ui.form.on('Number Card', { "value": value, "fieldtype": "Currency" } -`) +`); } }, diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index e2020e8690..40ebd1c497 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -133,7 +133,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { ]); } - add_card_button_to_toolbar(show) { + add_card_button_to_toolbar() { this.page.add_inner_button(__("Create Card"), () => { this.add_card_to_dashboard(); }); @@ -609,12 +609,11 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { } this.render_datatable(); this.add_chart_buttons_to_toolbar(true); - this.add_card_button_to_toolbar(true); + this.add_card_button_to_toolbar(); } else { this.data = []; this.toggle_nothing_to_show(true); this.add_chart_buttons_to_toolbar(false); - this.add_card_button_to_toolbar(false); } this.show_footer_message();