Remove documents components that do not support local media.

This commit is contained in:
Patrick Fic
2022-05-09 09:56:46 -07:00
parent 45354417d0
commit f9fdd95491
11 changed files with 64 additions and 34 deletions

View File

@@ -12,6 +12,7 @@ import {
} from "../../redux/media/media.actions";
import { selectAllMedia } from "../../redux/media/media.selectors";
import { selectBodyshop } from "../../redux/user/user.selectors";
import { CreateExplorerLinkForJob } from "../../utils/localmedia";
import DocumentsLocalUploadComponent from "../documents-local-upload/documents-local-upload.component";
import JobsDocumentsLocalGalleryReassign from "./jobs-documents-local-gallery.reassign.component";
@@ -23,7 +24,6 @@ const mapStateToProps = createStructuredSelector({
const mapDispatchToProps = (dispatch) => ({
getJobMedia: (id) => dispatch(getJobMedia(id)),
getBillMedia: ({ jobid, invoice_number }) => {
console.log(jobid);
dispatch(getBillMedia({ jobid, invoice_number }));
},
toggleMediaSelected: ({ jobid, filename }) =>
@@ -59,8 +59,6 @@ export function JobsDocumentsLocalGallery({
return (
<div>
<Space wrap>
{JSON.stringify({ jobid: job.id, invoice_number, vendorid }, null, 4) ||
"NO JOB ID"}
<Button
onClick={() => {
if (job) {
@@ -74,9 +72,7 @@ export function JobsDocumentsLocalGallery({
>
<SyncOutlined />
</Button>
<a
href={`imexmedia://${bodyshop.localmediaservernetwork}/Jobs/${job.id}`}
>
<a href={CreateExplorerLinkForJob({ jobid: job.id })}>
<Button>{t("documents.labels.openinexplorer")}</Button>
</a>
<JobsDocumentsLocalGalleryReassign jobid={job.id} />