Skip to content

Commit

Permalink
chore: fixed linter error frappe-missing-translation-button-text
Browse files Browse the repository at this point in the history
  • Loading branch information
asmitahase committed Jan 30, 2025
1 parent e49c5a7 commit 079054c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hrms/hr/doctype/leave_application/leave_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,22 @@ frappe.ui.form.on("Leave Application", {
frm.disable_save();
$(".form-message").prop("hidden", true);
frm.add_custom_button(
"Approve",
__("Approve"),
() => {
frm.set_value("status", "Approved");
frm.save("Submit");
},
"Actions",
__("Actions"),
);
frm.add_custom_button(
"Reject",
__("Reject"),
() => {
frm.set_value("status", "Rejected");
frm.save("Submit");
},
"Actions",
__("Actions"),
);
frm.page.set_inner_btn_group_as_primary("Actions");
frm.page.set_inner_btn_group_as_primary(__("Actions"));
},
});

Expand Down

0 comments on commit 079054c

Please sign in to comment.