@@ -394,15 +394,17 @@ export function ProductionListConfigManager({
|
|||||||
>
|
>
|
||||||
{t("general.actions.save")}
|
{t("general.actions.save")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
{!isAddingNewProfile && (
|
||||||
type="default"
|
<Button
|
||||||
onClick={() => {
|
type="default"
|
||||||
setIsAddingNewProfile(true);
|
onClick={() => {
|
||||||
setOpen(true);
|
setIsAddingNewProfile(true);
|
||||||
}}
|
setOpen(true);
|
||||||
>
|
}}
|
||||||
{t("general.actions.saveas")}
|
>
|
||||||
</Button>
|
{t("general.actions.saveas")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsAddingNewProfile(false);
|
setIsAddingNewProfile(false);
|
||||||
@@ -431,6 +433,7 @@ export function ProductionListConfigManager({
|
|||||||
optionLabelProp="label"
|
optionLabelProp="label"
|
||||||
popupMatchSelectWidth={false}
|
popupMatchSelectWidth={false}
|
||||||
value={activeView}
|
value={activeView}
|
||||||
|
disabled={open || isAddingNewProfile} // Disable the Select box when the popover is open or adding a new profile
|
||||||
>
|
>
|
||||||
{bodyshop.production_config
|
{bodyshop.production_config
|
||||||
.slice()
|
.slice()
|
||||||
|
|||||||
Reference in New Issue
Block a user