mirror of
https://github.com/community-scripts/Proxmox.git
synced 2026-03-31 06:34:15 -04:00
refactor: Improve conditional rendering in ScriptItem component for better clarity on item usage instructions
This commit is contained in:
@@ -389,7 +389,7 @@ function ScriptItem({
|
||||
</Tabs>
|
||||
) : (
|
||||
<>
|
||||
{item.item_type && (
|
||||
{item.item_type ? (
|
||||
<>
|
||||
<p className="text-sm">
|
||||
To create a new Proxmox VE {item.title}{" "}
|
||||
@@ -397,6 +397,13 @@ function ScriptItem({
|
||||
Proxmox VE Shell.
|
||||
</p>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<p className="text-sm">
|
||||
To use the {item.title} script, run
|
||||
the command below in the shell.
|
||||
</p>
|
||||
</>
|
||||
)}
|
||||
{installCommand && (
|
||||
<CodeCopyButton>{installCommand}</CodeCopyButton>
|
||||
|
||||
Reference in New Issue
Block a user