Skip to content

Commit

Permalink
fix(back): Email params
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Oct 28, 2023
1 parent dc7701d commit a17718a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/back/src/services/dto/area.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ApiProperty } from "@nestjs/swagger";
import { IsArray, IsBoolean, IsEnum, IsString } from "class-validator";
import { Type } from "class-transformer";

export const PARAMETERS_FORM_FLOW_FIELD_TYPES = ["short-text", "long-text", "integer", "text-array"] as const;
export const PARAMETERS_FORM_FLOW_FIELD_TYPES = ["email", "short-text", "long-text", "integer", "text-array"] as const;

export class ParametersFormFlowFieldDto {
@ApiProperty({
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/layouts/editor/EditorAreParameter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const EditorAreaParameterInput = ({ parameter, onValueChange }: EditorAreaParame
/>
);
}
if (["short-text", "long-text", "text-array"].includes(parameter.type)) {
if (["email", "short-text", "long-text", "text-array"].includes(parameter.type)) {
return (
<input
type="text"
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/types/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Service = {
scopes: string[];
};

export type AreaParameterType = "short-text" | "long-text" | "integer" | "text-array";
export type AreaParameterType = "email" | "short-text" | "long-text" | "integer" | "text-array";

export type AreaParameter = {
name: string;
Expand Down

0 comments on commit a17718a

Please sign in to comment.