style: fix formatting

This commit is contained in:
prssanna 2020-07-29 17:49:26 +05:30
parent c5e988dcf1
commit 7bfc8a9b87
3 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,7 @@ frappe.ui.form.on("System Settings", "enable_two_factor_auth", function(frm) {
});
frappe.ui.form.on("System Settings", "enable_prepared_report_auto_deletion", function(frm) {
if(frm.doc.enable_prepared_report_auto_deletion){
if (frm.doc.enable_prepared_report_auto_deletion) {
if (!frm.doc.prepared_report_expiry_period) {
frm.set_value('prepared_report_expiry_period', 30);
}

View file

@ -185,8 +185,8 @@ frappe.ui.form.Toolbar = Class.extend({
return this.page.add_dropdown(label);
},
set_indicator: function() {
if(this.frm.save_disabled)
return;
// if(this.frm.save_disabled)
// return;
var indicator = frappe.get_indicator(this.frm.doc);
if(indicator) {

View file

@ -680,7 +680,8 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
this.show_warning_or_generate_report();
}
}
}
};
let primary_action = this.primary_action_map[this.prepared_report_action];
if (!this.primary_button || this.primary_button.text() !== primary_action.label) {