mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ added custom format
This commit is contained in:
parent
91e0697d97
commit
bbd3a3bc8b
|
@ -44,7 +44,7 @@ export class DateTime implements INodeType {
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
action:[
|
action:[
|
||||||
'format'
|
'format',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -52,6 +52,35 @@ export class DateTime implements INodeType {
|
||||||
default: '',
|
default: '',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Custom Format',
|
||||||
|
name: 'custom',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
action:[
|
||||||
|
'format',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'To Format',
|
||||||
|
name: 'toFormat',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
action:[
|
||||||
|
'format',
|
||||||
|
],
|
||||||
|
custom: [
|
||||||
|
true,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'To Format',
|
displayName: 'To Format',
|
||||||
name: 'toFormat',
|
name: 'toFormat',
|
||||||
|
@ -59,7 +88,10 @@ export class DateTime implements INodeType {
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
action:[
|
action:[
|
||||||
'format'
|
'format',
|
||||||
|
],
|
||||||
|
custom:[
|
||||||
|
false,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue