mirror of https://github.com/langgenius/dify.git
revert(workflow): remove timezone label from trigger-schedule node display
This commit is contained in:
parent
7560e2427d
commit
ebcf98c137
|
|
@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next'
|
|||
import type { ScheduleTriggerNodeType } from './types'
|
||||
import type { NodeProps } from '@/app/components/workflow/types'
|
||||
import { getNextExecutionTime } from './utils/execution-time-calculator'
|
||||
import TimezoneLabel from '@/app/components/base/timezone-label'
|
||||
|
||||
const i18nPrefix = 'workflow.nodes.triggerSchedule'
|
||||
|
||||
|
|
@ -19,11 +18,10 @@ const Node: FC<NodeProps<ScheduleTriggerNodeType>> = ({
|
|||
{t(`${i18nPrefix}.nextExecutionTime`)}
|
||||
</div>
|
||||
<div className="flex h-[26px] items-center rounded-md bg-workflow-block-parma-bg px-2 text-xs text-text-secondary">
|
||||
<div className="flex w-0 grow items-center gap-1 overflow-hidden">
|
||||
<span className="truncate" title={`${getNextExecutionTime(data)} ${data.timezone}`}>
|
||||
<div className="w-0 grow">
|
||||
<div className="truncate" title={getNextExecutionTime(data)}>
|
||||
{getNextExecutionTime(data)}
|
||||
</span>
|
||||
<TimezoneLabel timezone={data.timezone} inline className="shrink-0 text-xs" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue