Disallow status change on non-converted jobs. IO-627
This commit is contained in:
@@ -77,10 +77,14 @@ export function JobsChangeStatus({ job, bodyshop, jobRO }) {
|
||||
{availableStatuses.map((item) => (
|
||||
<Menu.Item key={item}>{item}</Menu.Item>
|
||||
))}
|
||||
<Menu.Divider />
|
||||
{otherStages.map((item, idx) => (
|
||||
<Menu.Item key={item}>{item}</Menu.Item>
|
||||
))}
|
||||
{job.converted && (
|
||||
<>
|
||||
<Menu.Divider />
|
||||
{otherStages.map((item, idx) => (
|
||||
<Menu.Item key={item}>{item}</Menu.Item>
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</Menu>
|
||||
);
|
||||
|
||||
@@ -90,7 +94,7 @@ export function JobsChangeStatus({ job, bodyshop, jobRO }) {
|
||||
overlay={statusmenu}
|
||||
trigger={["click"]}
|
||||
key="changestatus"
|
||||
disabled={jobRO}
|
||||
disabled={jobRO || !job.converted}
|
||||
>
|
||||
<Button>
|
||||
{t("jobs.actions.changestatus")} <DownCircleFilled />
|
||||
|
||||
Reference in New Issue
Block a user