forked from forkanization/Proxmox-arm64
Add script status to sidebar and title
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 74 KiB |
@@ -117,7 +117,7 @@ export default function ScriptAccordion({
|
|||||||
className="mr-1 w-4 h-4 rounded-full"
|
className="mr-1 w-4 h-4 rounded-full"
|
||||||
/>
|
/>
|
||||||
<span className="flex items-center gap-2">
|
<span className="flex items-center gap-2">
|
||||||
{script.name}
|
{script.status} {script.name}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{formattedBadge(script.type)}
|
{formattedBadge(script.type)}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ function ScriptItem({
|
|||||||
<div className="flex h-full w-full flex-col justify-between">
|
<div className="flex h-full w-full flex-col justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-lg font-semibold">
|
<h1 className="text-lg font-semibold">
|
||||||
{item.name} {getDisplayValueFromType(item.type)}
|
{item.status} {item.name} {getDisplayValueFromType(item.type)}
|
||||||
</h1>
|
</h1>
|
||||||
<p className="w-full text-sm text-muted-foreground">
|
<p className="w-full text-sm text-muted-foreground">
|
||||||
Date added: {extractDate(item.date_created)}
|
Date added: {extractDate(item.date_created)}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export type Script = {
|
|||||||
type: keyof typeof AlertColors;
|
type: keyof typeof AlertColors;
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
status: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Category = {
|
export type Category = {
|
||||||
|
|||||||
Reference in New Issue
Block a user