show unsaved changes

This commit is contained in:
Ramnique Singh 2025-06-12 07:06:20 +05:30
parent a2a80282c9
commit 5d2287e6d8

View file

@ -928,10 +928,13 @@ export function WorkflowEditor({
<Spinner size="sm" /> <Spinner size="sm" />
<div>Saving...</div> <div>Saving...</div>
</div>} </div>}
{!state.present.saving && state.present.workflow && <div> {!state.present.saving && !state.present.pendingChanges && state.present.workflow && <div>
Updated <RelativeTime date={new Date(state.present.lastUpdatedAt)} /> Updated <RelativeTime date={new Date(state.present.lastUpdatedAt)} />
</div>} </div>}
</div>} {!state.present.saving && state.present.pendingChanges && state.present.workflow && <div>
Unsaved changes
</div>}
</div>}
{!isLive && <> {!isLive && <>
<button <button
className="p-1 text-gray-400 hover:text-black hover:cursor-pointer" className="p-1 text-gray-400 hover:text-black hover:cursor-pointer"