@@ -376,7 +376,14 @@ export function ProductionListConfigManager({
|
|||||||
>
|
>
|
||||||
{t("general.actions.save")}
|
{t("general.actions.save")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={() => setOpen(false)}>{t("general.actions.close")}</Button>
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
setIsAddingNewProfile(false);
|
||||||
|
setOpen(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("general.actions.close")}
|
||||||
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
@@ -384,11 +391,10 @@ export function ProductionListConfigManager({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Space>
|
<Space>
|
||||||
<Popover open={open} content={popMenu}>
|
<Button loading={loading} onClick={() => setOpen(true)} disabled={isAddingNewProfile || !hasUnsavedChanges}>
|
||||||
<Button loading={loading} onClick={() => setOpen(true)} disabled={!isAddingNewProfile && !hasUnsavedChanges}>
|
|
||||||
{t("production.actions.saveconfig")}
|
{t("production.actions.saveconfig")}
|
||||||
</Button>
|
</Button>
|
||||||
</Popover>
|
<Popover open={open} content={popMenu} placement="bottom">
|
||||||
<Select
|
<Select
|
||||||
style={{
|
style={{
|
||||||
minWidth: "150px"
|
minWidth: "150px"
|
||||||
@@ -397,7 +403,7 @@ export function ProductionListConfigManager({
|
|||||||
placeholder={t("production.labels.selectview")}
|
placeholder={t("production.labels.selectview")}
|
||||||
optionLabelProp="label"
|
optionLabelProp="label"
|
||||||
popupMatchSelectWidth={false}
|
popupMatchSelectWidth={false}
|
||||||
value={activeView} // Ensure this only changes when appropriate
|
value={activeView}
|
||||||
>
|
>
|
||||||
{bodyshop.production_config
|
{bodyshop.production_config
|
||||||
.slice()
|
.slice()
|
||||||
@@ -433,6 +439,7 @@ export function ProductionListConfigManager({
|
|||||||
</div>
|
</div>
|
||||||
</Select.Option>
|
</Select.Option>
|
||||||
</Select>
|
</Select>
|
||||||
|
</Popover>
|
||||||
</Space>
|
</Space>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user