- Checkpoint

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-08-21 15:39:16 -04:00
parent 90532427b6
commit 11785f3b86

View File

@@ -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()