diff --git a/net/relayd/src/opnsense/mvc/app/views/OPNsense/Relayd/status.volt b/net/relayd/src/opnsense/mvc/app/views/OPNsense/Relayd/status.volt index c3a15c73b..0d7a42271 100644 --- a/net/relayd/src/opnsense/mvc/app/views/OPNsense/Relayd/status.volt +++ b/net/relayd/src/opnsense/mvc/app/views/OPNsense/Relayd/status.volt @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. * create status and start/stop buttons **/ function getControlButtons(status, id, nodeType) { - let status_btn = $(''); + let status_btn = $('').css('cursor', 'auto'); let action_btn = $('').attr('data-nodeid', id).attr('data-nodetype', nodeType); let action_btn_remove = action_btn.clone(true); let response = []; @@ -75,6 +75,14 @@ POSSIBILITY OF SUCH DAMAGE. if (nodeType === 'relay') { action_btn.removeClass('node_action').attr('disabled', 'disabled'); } + + if (nodeType == 'host' && response.length == 2) { + response.push( + $('').css('cursor', 'auto').css('opacity', '0').append( + $("") + ) + ); + } return response; }; @@ -160,6 +168,7 @@ POSSIBILITY OF SUCH DAMAGE. $vs_td.append( $('
').append( getControlButtons(virtualserver.status, virtualserver.id, virtualserver.type), + ' ', virtualserver.name, listen_str, ' (' + virtualserver.type + '): ', @@ -174,6 +183,7 @@ POSSIBILITY OF SUCH DAMAGE. $tbl_td.append( $('').append( getControlButtons(table.status, tkey, 'table'), + ' ', table.name + ' ' + table.status ).data('payload', table).data('type', 'table') ); @@ -195,6 +205,7 @@ POSSIBILITY OF SUCH DAMAGE. $host_td.append( $('').append( getControlButtons(host.status, hkey, 'host'), + ' ', display_name, " ", host.status