Update frappe/desk/doctype/system_console/system_console.js
Co-authored-by: Aditya Hase <aditya@adityahase.com>
This commit is contained in:
parent
c53813950f
commit
3eb0e5ce8a
1 changed files with 10 additions and 0 deletions
|
|
@ -2,6 +2,16 @@
|
|||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('System Console', {
|
||||
onload: function(frm) {
|
||||
frappe.ui.keys.add_shortcut({
|
||||
shortcut: 'shift+enter',
|
||||
action: () => frm.execute_action('Execute'),
|
||||
page: frm.page,
|
||||
description: __('Execute Console script'),
|
||||
ignore_inputs: true,
|
||||
});
|
||||
},
|
||||
|
||||
refresh: function(frm) {
|
||||
frm.disable_save();
|
||||
frm.page.set_primary_action(__("Execute"), () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue