Language updates + removal of buttons.

This commit is contained in:
Patrick Fic
2020-01-09 18:26:24 -08:00
parent dbe4f47539
commit 4b5109e201
2 changed files with 10 additions and 18 deletions

View File

@@ -37,12 +37,15 @@ export default function JobDetailCards({ selectedJob }) {
<PageHeader <PageHeader
ghost={false} ghost={false}
onBack={() => window.history.back()} onBack={() => window.history.back()}
title="Title" title={
subTitle="This is a subtitle" data?.jobs_by_pk.ro_number
? `${t("jobs.fields.ro_number")} ${data?.jobs_by_pk.ro_number}`
: `${t("jobs.fields.est_number")} ${data?.jobs_by_pk.est_number}``
}
extra={[ extra={[
<Button key="images"> <Button key="documents">
<Icon type="file-image" /> <Icon type="file-image" />
{t("jobs.actions.viewJobImages")} {t("jobs.actions.addDocuments")}
</Button>, </Button>,
<Button key="printing"> <Button key="printing">
<Icon type="printer" /> <Icon type="printer" />
@@ -50,19 +53,11 @@ export default function JobDetailCards({ selectedJob }) {
</Button>, </Button>,
<Button key="notes"> <Button key="notes">
<Icon type="edit" /> <Icon type="edit" />
{t("jobs.actions.notes")} {t("jobs.actions.addNote")}
</Button>, </Button>,
<Button key="postinvoices"> <Button key="postinvoices">
<Icon type="shopping-cart" /> <Icon type="shopping-cart" />
{t("jobs.actions.postInvoices")} {t("jobs.actions.postInvoices")}
</Button>,
<Button key="receiveparts">
<Icon type="inbox" />
{t("jobs.actions.receiveParts")}
</Button>,
<Button key="partstatus">
<Icon type="tool" />
{t("jobs.actions.partStatus")}
</Button> </Button>
]} ]}
> >

View File

@@ -75,13 +75,10 @@
"nojobselected": "No job is selected." "nojobselected": "No job is selected."
}, },
"actions": { "actions": {
"viewJobImages": "View Job Images", "addDocuments": "Add Job Documents",
"printCenter": "Print Center", "printCenter": "Print Center",
"postInvoices": "Post Invoices", "postInvoices": "Post Invoices",
"notes": "Job Notes", "addNote": "Add Note"
"partStatus": "Part Status",
"receiveParts": "Receive Parts",
"card": {}
} }
} }
} }