chore: workflow syncing modal (#5108)

This commit is contained in:
zxhlyh
2024-06-12 16:35:19 +08:00
committed by GitHub
parent 0ce97e6315
commit 95443bd551
8 changed files with 48 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ const EditingTitle = () => {
const { formatTimeFromNow } = useWorkflow()
const draftUpdatedAt = useStore(state => state.draftUpdatedAt)
const publishedAt = useStore(state => state.publishedAt)
const isSyncingWorkflowDraft = useStore(s => s.isSyncingWorkflowDraft)
return (
<div className='flex items-center h-[18px] text-xs text-gray-500'>
@@ -26,6 +27,14 @@ const EditingTitle = () => {
? `${t('workflow.common.published')} ${formatTimeFromNow(publishedAt)}`
: t('workflow.common.unpublished')
}
{
isSyncingWorkflowDraft && (
<>
<span className='flex items-center mx-1'>·</span>
{t('workflow.common.syncingData')}
</>
)
}
</div>
)
}