From f0c28a49612413c4b59d66dbc088181074c70c2d Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 16 Jan 2024 12:11:26 -0500 Subject: [PATCH] Update hooks.php Hide the SSH key field if the user isn't logged in to see them or is a new user. --- modules/servers/VirtFusionDirect/hooks.php | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/modules/servers/VirtFusionDirect/hooks.php b/modules/servers/VirtFusionDirect/hooks.php index 466f82f..74c3d6e 100644 --- a/modules/servers/VirtFusionDirect/hooks.php +++ b/modules/servers/VirtFusionDirect/hooks.php @@ -27,7 +27,7 @@ add_hook('ClientAreaFooterOutput', 1, function ($vars) { foreach ($templates_data['data'] as $osCategory) { foreach ($osCategory['templates'] as $template) { $optionValue = $template['id']; - $optionLabel = $template['name'] . " " . $template['version'] . " " . $template['variant']; + $optionLabel = $template['name']." ".$template['version']." ".$template['variant']; $dropdownOptions[] = ['id' => $optionValue, 'name' => $optionLabel]; } } @@ -65,18 +65,20 @@ add_hook('ClientAreaFooterOutput', 1, function ($vars) { return " "; -}); \ No newline at end of file +});