From 1a14fb8da632bb95b14ae49f4b7f4f4f664ccde8 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 5 Feb 2020 15:08:47 -0800 Subject: [PATCH] Baseline adding a job to the schedule. --- bodyshop_translations.babel | 21 +++++++++++ .../jobs-detail-header.component.jsx | 13 ++++++- .../schedule-job-modal.component.jsx | 35 +++++++++++++++++++ .../schedule-job-modal.container.jsx | 34 ++++++++++++++++++ client/src/graphql/appointments.queries.js | 10 ++++++ .../jobs-detail.page.component.jsx | 10 +++++- .../jobs-detail.page.container.jsx | 5 ++- client/src/translations/en_us/common.json | 3 +- client/src/translations/es/common.json | 3 +- client/src/translations/fr/common.json | 3 +- .../down.yaml | 6 ++++ .../up.yaml | 12 +++++++ 12 files changed, 149 insertions(+), 6 deletions(-) create mode 100644 client/src/components/schedule-job-modal/schedule-job-modal.component.jsx create mode 100644 client/src/components/schedule-job-modal/schedule-job-modal.container.jsx create mode 100644 hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/down.yaml create mode 100644 hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/up.yaml diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index ef6c0e9f6..1351ea4bd 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -834,6 +834,27 @@ + + schedule + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + diff --git a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx index 6d89061d2..6d1fd52f1 100644 --- a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx +++ b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx @@ -18,9 +18,11 @@ export default function JobsDetailHeader({ job, mutationConvertJob, refetch, - handleSubmit + handleSubmit, + scheduleModalState }) { const { t } = useTranslation(); + const [scheduleModalVisible, setscheduleModalVisible] = scheduleModalState; const tombstoneTitle = (
@@ -58,6 +60,15 @@ export default function JobsDetailHeader({ ); const menuExtra = [ + ,