From 48e9b03dec2ffff7e755044011137156bb8b2fc9 Mon Sep 17 00:00:00 2001 From: Bram Suurd Date: Fri, 9 Aug 2024 02:56:44 +0200 Subject: [PATCH] refactor: Improve conditional rendering in ScriptItem component for better clarity on item usage instructions --- src/app/scripts/_components/ScriptItem.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/scripts/_components/ScriptItem.tsx b/src/app/scripts/_components/ScriptItem.tsx index d2b5b9c..2344b7e 100644 --- a/src/app/scripts/_components/ScriptItem.tsx +++ b/src/app/scripts/_components/ScriptItem.tsx @@ -389,7 +389,7 @@ function ScriptItem({ ) : ( <> - {item.item_type && ( + {item.item_type ? ( <>

To create a new Proxmox VE {item.title}{" "} @@ -397,6 +397,13 @@ function ScriptItem({ Proxmox VE Shell.

+ ) : ( + <> +

+ To use the {item.title} script, run + the command below in the shell. +

+ )} {installCommand && ( {installCommand}