diff --git a/src/components/flow/routers/ticket/TicketRouterForm.tsx b/src/components/flow/routers/ticket/TicketRouterForm.tsx index 068aaaf8d..bfcfb295a 100644 --- a/src/components/flow/routers/ticket/TicketRouterForm.tsx +++ b/src/components/flow/routers/ticket/TicketRouterForm.tsx @@ -75,9 +75,7 @@ export default class TicketRouterForm extends React.Component< } if (keys.hasOwnProperty('body')) { - updates.body = validate(i18n.t('forms.body', 'Body'), keys.body, [ - shouldRequireIf(submitting) - ]); + updates.body = validate(i18n.t('forms.body', 'Body'), keys.body, []); } if (keys.hasOwnProperty('resultName')) { @@ -172,7 +170,7 @@ export default class TicketRouterForm extends React.Component< @@ -107,7 +107,7 @@ exports[`TicketRouterForm render should render 1`] = ` @@ -267,7 +267,7 @@ exports[`TicketRouterForm updates should save changes 1`] = ` expressions="" name="Assignee" namekey="name" - placeholder="Assign to (Optional)" + placeholder="Assign to (optional)" valuekey="email" values="[]" /> @@ -286,7 +286,7 @@ exports[`TicketRouterForm updates should save changes 1`] = ` diff --git a/src/components/flow/routers/ticket/helpers.ts b/src/components/flow/routers/ticket/helpers.ts index 6a5156d47..f5b071fd6 100644 --- a/src/components/flow/routers/ticket/helpers.ts +++ b/src/components/flow/routers/ticket/helpers.ts @@ -19,8 +19,8 @@ export const getOriginalAction = (settings: NodeEditorSettings): OpenTicket => { export const nodeToState = (settings: NodeEditorSettings): TicketRouterFormState => { let subject = { value: '@run.flow.name' }; - let body = { value: '@results' }; - let resultName = { value: 'Result' }; + let body = { value: '' }; + let resultName = { value: '' }; let assignee: FormEntry = { value: null }; let topic: FormEntry = { value: null }; diff --git a/src/config/i18n/defaults.json b/src/config/i18n/defaults.json index 9bce3bdce..68b599539 100644 --- a/src/config/i18n/defaults.json +++ b/src/config/i18n/defaults.json @@ -217,7 +217,7 @@ "email_recipient_name": "Recipient", "email_recipient_placeholder": "To", "email_recipient_prompt": "Enter email address", - "enter_a_body": "Enter a body", + "enter_a_body": "Enter a body (optional)", "enter_a_subject": "Enter a subject", "enter_a_url": "Enter a URL", "enter_field_value": "Enter a new value for [[field]]", diff --git a/src/config/i18n/es/resource.json b/src/config/i18n/es/resource.json index 98f58ce7c..f23c94fb4 100644 --- a/src/config/i18n/es/resource.json +++ b/src/config/i18n/es/resource.json @@ -217,7 +217,7 @@ "email_recipient_name": "Destinatario", "email_recipient_placeholder": "Para", "email_recipient_prompt": "Introducir la dirección de correo electrónico", - "enter_a_body": "Introducir cuerpo", + "enter_a_body": "Introducir cuerpo (opcional)", "enter_a_subject": "Introducir asunto", "enter_a_url": "Introducir URL", "enter_field_value": "Ingrese un nuevo valor para [[field]]", diff --git a/src/flowTypes.ts b/src/flowTypes.ts index a710af6d0..68b263da8 100644 --- a/src/flowTypes.ts +++ b/src/flowTypes.ts @@ -465,7 +465,7 @@ export interface CallWebhook extends Action { export interface OpenTicket extends Action { subject?: string; topic?: Topic; - body: string; + body?: string; result_name: string; assignee?: User; }