From 5e19d53b29ea25bb77c8ff9b53b3bd52ac5b56de Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 16 Jan 2020 10:41:42 -0800 Subject: [PATCH] Fixed conversion enabled logic. --- _business_logic/documents.md | 8 ++++++++ .../components/job-tombstone/job-tombstone.component.jsx | 6 ++++-- s3upload.js | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 _business_logic/documents.md diff --git a/_business_logic/documents.md b/_business_logic/documents.md new file mode 100644 index 000000000..7291c0a58 --- /dev/null +++ b/_business_logic/documents.md @@ -0,0 +1,8 @@ +**S3 Folder Structure** +/{shopID}/{jobID}/imagename.ext + +**Logic** +1. Get a presigned URL by hitting our own express server with a unique key. +2. Use this presigned URL to upload an individual file. +3. Store the key + the bucket name to the documents record. +4. ???Figure out how to add thumbnails. \ No newline at end of file diff --git a/client/src/components/job-tombstone/job-tombstone.component.jsx b/client/src/components/job-tombstone/job-tombstone.component.jsx index 0f56000e9..102b8f120 100644 --- a/client/src/components/job-tombstone/job-tombstone.component.jsx +++ b/client/src/components/job-tombstone/job-tombstone.component.jsx @@ -75,7 +75,9 @@ function JobTombstone({ job, ...otherProps }) { const tombstoneTitle = (
- {t("jobs.fields.ro_number") + " " + jobContext.ro_number ?? "0"} + {`${t("jobs.fields.ro_number")} ${ + jobContext.ro_number ? jobContext.ro_number : t("general.labels.na") + }`}
); @@ -99,7 +101,7 @@ function JobTombstone({ job, ...otherProps }) {