mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Transformation: UI date field transformation (#93807)
fix(transformation): ui date field transformation
This commit is contained in:
parent
eb8e6c6a9f
commit
2e559bb333
@ -172,22 +172,21 @@ export const ConvertFieldTypeTransformerEditor = ({
|
|||||||
<Input value={c.joinWith} placeholder={'JSON'} onChange={onJoinWithChange(idx)} width={9} />
|
<Input value={c.joinWith} placeholder={'JSON'} onChange={onJoinWithChange(idx)} width={9} />
|
||||||
</InlineField>
|
</InlineField>
|
||||||
)}
|
)}
|
||||||
{c.dateFormat ||
|
{targetField?.type === FieldType.time && (
|
||||||
(targetField?.type === FieldType.time && (
|
<>
|
||||||
<>
|
<InlineField label="Date format" tooltip="Specify the output format.">
|
||||||
<InlineField label="Date format" tooltip="Specify the output format.">
|
<Input
|
||||||
<Input
|
value={c.dateFormat}
|
||||||
value={c.dateFormat}
|
placeholder={'e.g. YYYY-MM-DD'}
|
||||||
placeholder={'e.g. YYYY-MM-DD'}
|
onChange={onInputFormat(idx)}
|
||||||
onChange={onInputFormat(idx)}
|
width={24}
|
||||||
width={24}
|
/>
|
||||||
/>
|
</InlineField>
|
||||||
</InlineField>
|
<InlineField label="Set timezone" tooltip="Set the timezone of the date manually">
|
||||||
<InlineField label="Set timezone" tooltip="Set the timezone of the date manually">
|
<Select options={timeZoneOptions} value={c.timezone} onChange={onTzChange(idx)} isClearable />
|
||||||
<Select options={timeZoneOptions} value={c.timezone} onChange={onTzChange(idx)} isClearable />
|
</InlineField>
|
||||||
</InlineField>
|
</>
|
||||||
</>
|
)}
|
||||||
))}
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user