Minor Changes.
This commit is contained in:
@@ -29,7 +29,8 @@ export function JobLineDispatchButton({
|
||||
bodyshop,
|
||||
jobRO,
|
||||
job,
|
||||
currentUser
|
||||
currentUser,
|
||||
disabled
|
||||
}) {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
@@ -137,7 +138,7 @@ export function JobLineDispatchButton({
|
||||
|
||||
return (
|
||||
<Popover open={visible} content={popMenu}>
|
||||
<Button disabled={selectedLines.length === 0 || jobRO} loading={loading} onClick={() => setVisible(true)}>
|
||||
<Button disabled={selectedLines.length === 0 || jobRO || disabled} loading={loading} onClick={() => setVisible(true)}>
|
||||
{t("joblines.actions.dispatchparts", { count: selectedLines.length })}
|
||||
</Button>
|
||||
</Popover>
|
||||
|
||||
Reference in New Issue
Block a user