WIP Tech Claiming Ability
This commit is contained in:
@@ -70,7 +70,7 @@ export function JobLineDispatchButton({
|
||||
notification.open({
|
||||
type: "error",
|
||||
message: t("parts_dispatch.errors.creating", {
|
||||
error: JSON.stringify(result.errors),
|
||||
error: result.errors,
|
||||
}),
|
||||
});
|
||||
} else {
|
||||
@@ -79,7 +79,7 @@ export function JobLineDispatchButton({
|
||||
{
|
||||
name: Templates.parts_dispatch.key,
|
||||
variables: {
|
||||
id: result.data.insert_part_dispatch_one.id,
|
||||
id: result.data.insert_parts_dispatch_one.id,
|
||||
},
|
||||
},
|
||||
{},
|
||||
@@ -91,7 +91,7 @@ export function JobLineDispatchButton({
|
||||
notification.open({
|
||||
type: "error",
|
||||
message: t("parts_dispatch.errors.creating", {
|
||||
error: JSON.stringify(error),
|
||||
error: error,
|
||||
}),
|
||||
});
|
||||
} finally {
|
||||
@@ -137,7 +137,12 @@ export function JobLineDispatchButton({
|
||||
</Form.Item>
|
||||
|
||||
<Space wrap>
|
||||
<Button type="danger" onClick={() => form.submit()} loading={loading}>
|
||||
<Button
|
||||
type="danger"
|
||||
onClick={() => form.submit()}
|
||||
loading={loading}
|
||||
disabled={selectedLines.length === 0}
|
||||
>
|
||||
{t("general.actions.save")}
|
||||
</Button>
|
||||
<Button onClick={() => setVisible(false)}>
|
||||
|
||||
Reference in New Issue
Block a user