Skip to content

Commit

Permalink
Add script status to sidebar and title
Browse files Browse the repository at this point in the history
  • Loading branch information
asylumexp committed Jan 9, 2025
1 parent 19aa2a5 commit db714e8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file modified frontend/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/app/scripts/_components/ScriptAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function ScriptAccordion({
className="mr-1 w-4 h-4 rounded-full"
/>
<span className="flex items-center gap-2">
{script.name}
{script.status} {script.name}
</span>
</div>
{formattedBadge(script.type)}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/scripts/_components/ScriptItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function ScriptItem({
<div className="flex h-full w-full flex-col justify-between">
<div>
<h1 className="text-lg font-semibold">
{item.name} {getDisplayValueFromType(item.type)}
{item.status} {item.name} {getDisplayValueFromType(item.type)}
</h1>
<p className="w-full text-sm text-muted-foreground">
Date added: {extractDate(item.date_created)}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type Script = {
type: keyof typeof AlertColors;
},
];
status: string;
};

export type Category = {
Expand Down

0 comments on commit db714e8

Please sign in to comment.