From 7d5a11d606da3978314e4b50fded183044ca3592 Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Mon, 3 Jun 2024 11:37:27 +0100 Subject: [PATCH] other metho to make button with list --- msp_remoteadmin/public/js/msp_remote.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/msp_remoteadmin/public/js/msp_remote.js b/msp_remoteadmin/public/js/msp_remote.js index 6b07afa..106d930 100644 --- a/msp_remoteadmin/public/js/msp_remote.js +++ b/msp_remoteadmin/public/js/msp_remote.js @@ -1,14 +1,14 @@ frappe.ui.form.on('IT Object', { refresh: function (frm) { if (frm.doc.link) { - frm.add_custom_button(__('Connect'), null, 'btn-rdp', null, 'btn-ssh'); - frm.page.add_menu_item(__('RDP'), function () { + frm.add_custom_button(__('RDP'), function () { connect_remote(frm, 'RDP'); - }, 'btn-rdp'); + }, '__("Connect")'); - frm.page.add_menu_item(__('SSH'), function () { + frm.add_custom_button(__('SSH'), function () { connect_remote(frm, 'SSH'); - }, 'btn-ssh'); + }, '__("Connect")'); + } } });