mirror of
https://github.com/itsdave-de/msp_remoteadmin.git
synced 2025-12-17 16:33:07 -03:00
fix variable names
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
frappe.ui.form.on('IT Object', {
|
||||
refresh: function (frm) {
|
||||
// Verifica se todos os campos necess<73>rios est<73>o preenchidos
|
||||
if (frm.doc.link) {
|
||||
// Adiciona o bot<6F>o "Connect"
|
||||
frm.add_custom_button(__('Connect'), null, 'btn-default', null, 'btn-connect');
|
||||
frm.add_custom_button(__('Connect'), null, 'btn-rdp', null, 'btn-ssh');
|
||||
frm.page.add_menu_item(__('RDP'), function () {
|
||||
connect_remote(frm, 'RDP');
|
||||
}, 'btn-connect');
|
||||
}, 'btn-rdp');
|
||||
|
||||
frm.page.add_menu_item(__('SSH'), function () {
|
||||
connect_remote(frm, 'SSH');
|
||||
}, 'btn-connect');
|
||||
}, 'btn-ssh');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user