From aced67f835d1b2fe000a2709d2608825a5bb093f Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 22 Mar 2021 17:48:24 -0700 Subject: [PATCH] IO-794 Add vendor active field --- bodyshop_translations.babel | 21 +++++++++ .../vendors-form/vendors-form.component.jsx | 9 ++++ client/src/graphql/vendors.queries.js | 11 +++-- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + .../down.yaml | 5 +++ .../up.yaml | 6 +++ .../down.yaml | 41 ++++++++++++++++++ .../up.yaml | 42 ++++++++++++++++++ .../down.yaml | 42 ++++++++++++++++++ .../up.yaml | 43 +++++++++++++++++++ .../down.yaml | 41 ++++++++++++++++++ .../up.yaml | 42 ++++++++++++++++++ hasura/migrations/metadata.yaml | 7 ++- 15 files changed, 309 insertions(+), 4 deletions(-) create mode 100644 hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/down.yaml create mode 100644 hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/up.yaml create mode 100644 hasura/migrations/1616459505404_update_permission_user_public_table_vendors/down.yaml create mode 100644 hasura/migrations/1616459505404_update_permission_user_public_table_vendors/up.yaml create mode 100644 hasura/migrations/1616459520408_update_permission_user_public_table_vendors/down.yaml create mode 100644 hasura/migrations/1616459520408_update_permission_user_public_table_vendors/up.yaml create mode 100644 hasura/migrations/1616459530975_update_permission_user_public_table_vendors/down.yaml create mode 100644 hasura/migrations/1616459530975_update_permission_user_public_table_vendors/up.yaml diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 2a7523483..285be0ac8 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -31769,6 +31769,27 @@ fields + + active + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + am false diff --git a/client/src/components/vendors-form/vendors-form.component.jsx b/client/src/components/vendors-form/vendors-form.component.jsx index 456146eae..3118ae96c 100644 --- a/client/src/components/vendors-form/vendors-form.component.jsx +++ b/client/src/components/vendors-form/vendors-form.component.jsx @@ -6,6 +6,7 @@ import { InputNumber, Select, Space, + Switch, Typography, } from "antd"; import React from "react"; @@ -49,6 +50,14 @@ export default function VendorsFormComponent({ > + + +