add icon for scripted actions (#3274)
This commit is contained in:
@@ -2,7 +2,11 @@ import { ActionsApiResponse, ActionTypes, Status } from "@/api/types";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import { ActionTypePill } from "@/routes/tasks/detail/ActionTypePill";
|
||||
import { cn } from "@/util/utils";
|
||||
import { CheckCircledIcon, CrossCircledIcon } from "@radix-ui/react-icons";
|
||||
import {
|
||||
CheckCircledIcon,
|
||||
CrossCircledIcon,
|
||||
LightningBoltIcon,
|
||||
} from "@radix-ui/react-icons";
|
||||
import { useCallback } from "react";
|
||||
|
||||
type Props = {
|
||||
@@ -47,6 +51,11 @@ function ActionCard({ action, onClick, active, index }: Props) {
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<ActionTypePill actionType={action.action_type} />
|
||||
{action.created_by === "script" && (
|
||||
<div className="flex gap-1 rounded-sm bg-slate-elevation5 px-2 py-1">
|
||||
<LightningBoltIcon className="h-4 w-4 text-[gold]" />
|
||||
</div>
|
||||
)}
|
||||
{success ? (
|
||||
<div className="flex gap-1 rounded-sm bg-slate-elevation5 px-2 py-1">
|
||||
<CheckCircledIcon className="h-4 w-4 text-success" />
|
||||
|
||||
Reference in New Issue
Block a user