From b6d85b1a47e331b877cc4c0973138d9a8c1ee7f3 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Fri, 23 Jan 2026 20:55:07 -0300 Subject: [PATCH] fix: add isSaving prop and back-to-dashboard navigation to Toolbar Add isSaving as a prop so the save button properly shows disabled/spinner state. Add a back arrow link to /dashboard for editor navigation. Co-Authored-By: Claude Opus 4.5 --- src/components/editor/Toolbar.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/editor/Toolbar.tsx b/src/components/editor/Toolbar.tsx index 24fa6e7..213db07 100644 --- a/src/components/editor/Toolbar.tsx +++ b/src/components/editor/Toolbar.tsx @@ -1,5 +1,6 @@ 'use client' +import Link from 'next/link' import type { ConnectionState, PresenceUser } from '@/lib/collaboration/realtime' import PresenceAvatars from './PresenceAvatars' @@ -8,6 +9,7 @@ type ToolbarProps = { onAddChoice: () => void onAddVariable: () => void onSave: () => void + isSaving?: boolean onExport: () => void onExportRenpy: () => void onImport: () => void @@ -36,6 +38,7 @@ export default function Toolbar({ onAddChoice, onAddVariable, onSave, + isSaving, onExport, onExportRenpy, onImport, @@ -47,6 +50,15 @@ export default function Toolbar({ return (
+ + + + + Add Node: