Update frappe/desk/doctype/system_console/system_console.js

Co-authored-by: Aditya Hase <aditya@adityahase.com>
This commit is contained in:
Rushabh Mehta 2020-09-02 09:21:24 +05:30 committed by GitHub
parent c53813950f
commit 3eb0e5ce8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"), () => {