From c330dc93b3b267ec82f60088048b6ed55a6b04e7 Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Mon, 3 Jun 2024 11:34:12 +0100 Subject: [PATCH] fix variable names --- msp_remoteadmin/public/js/msp_remote.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/msp_remoteadmin/public/js/msp_remote.js b/msp_remoteadmin/public/js/msp_remote.js index cb27896..6b07afa 100644 --- a/msp_remoteadmin/public/js/msp_remote.js +++ b/msp_remoteadmin/public/js/msp_remote.js @@ -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'); } } });