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