Skip to content

Commit

Permalink
feat: Add save button
Browse files Browse the repository at this point in the history
  • Loading branch information
Vafdaf12 committed Sep 27, 2024
1 parent fb49c7f commit 6a5903f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin-frontend/src/app/(pages)/workflows/designer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { graphToWorkflow, workflowToGraph } from "@/lib/api/workflow";
import { workflowSchema } from "@/lib/schema/workflow";
import { Textarea } from "@/components/ui/textarea";
import WorkflowTitle from "@/components/workflow/workflow-title";
import { SaveIcon } from "lucide-react";

const initialNodes: GraphState[] = [
{
Expand Down Expand Up @@ -171,8 +172,12 @@ function InnerProvider() {

return (
<div className="h-full grid grid-cols-[1fr_3fr] grid-rows-[auto_1fr]">
<div className="col-span-2 border-b dark:border-primary-500/30 border-primary-500/20">
<div className="col-span-2 border-b dark:border-primary-500/30 border-primary-500/20 flex items-center gap-2">
<WorkflowTitle value="New workflow" onValueChange={alert} />
<Button variant="ghost" title="Save">
<SaveIcon size="1.2rem" />
</Button>
<span className="opacity-50 text-sm">Unsaved</span>
</div>
<div className="p-2 space-y-2 flex flex-col">
<Textarea
Expand Down

0 comments on commit 6a5903f

Please sign in to comment.