mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
show unsaved changes
This commit is contained in:
parent
a2a80282c9
commit
5d2287e6d8
1 changed files with 5 additions and 2 deletions
|
|
@ -928,10 +928,13 @@ export function WorkflowEditor({
|
|||
<Spinner size="sm" />
|
||||
<div>Saving...</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)} />
|
||||
</div>}
|
||||
</div>}
|
||||
{!state.present.saving && state.present.pendingChanges && state.present.workflow && <div>
|
||||
Unsaved changes
|
||||
</div>}
|
||||
</div>}
|
||||
{!isLive && <>
|
||||
<button
|
||||
className="p-1 text-gray-400 hover:text-black hover:cursor-pointer"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue