add currency dropdown

This commit is contained in:
quansenB
2019-10-29 19:51:09 +01:00
parent a8b3f383ef
commit 3d42a0f0e6
2 changed files with 184 additions and 3 deletions

View File

@@ -1,11 +1,13 @@
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodePropertyOptions,
} from 'n8n-workflow';
import {
@@ -13,6 +15,8 @@ import {
activeCampaignApiRequestAllItems,
} from './GenericFunctions';
import { returnAllCurrencyOptions } from './currencies'
interface CustomProperty {
name: string;
value: string;
@@ -555,8 +559,8 @@ export class ActiveCampaign implements INodeType {
{
displayName: 'Currency',
name: 'currency',
type: 'string',
default: '',
type: 'options',
default: 'eur',
required: true,
displayOptions: {
show: {
@@ -568,6 +572,7 @@ export class ActiveCampaign implements INodeType {
],
},
},
options: returnAllCurrencyOptions(),
description: 'The currency of the deal in 3-character ISO format',
},
{
@@ -695,7 +700,8 @@ export class ActiveCampaign implements INodeType {
{
displayName: 'Currency',
name: 'currency',
type: 'string',
type: 'options',
options: returnAllCurrencyOptions(),
default: '',
description: 'The currency of the deal in 3-character ISO format',
},