style: formatting fixes
This commit is contained in:
parent
b32a47ec58
commit
6bc31f1d6a
2 changed files with 3 additions and 5 deletions
|
|
@ -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"
|
||||
}
|
||||
</code></pre>`)
|
||||
</code></pre>`);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue