mirror of
https://github.com/itsdave-de/msp_remoteadmin.git
synced 2025-05-06 12:25:12 +02:00
fix variable names
This commit is contained in:
parent
d5e47e1a91
commit
c330dc93b3
@ -1,16 +1,14 @@
|
||||
frappe.ui.form.on('IT Object', {
|
||||
refresh: function (frm) {
|
||||
// Verifica se todos os campos necessários estão preenchidos
|
||||
if (frm.doc.link) {
|
||||
// Adiciona o botã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');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user