Fixed continue button in spool select page
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"confirm": "Are you sure?",
|
"confirm": "Are you sure?",
|
||||||
|
"continue": "Continue",
|
||||||
"filter": "Filter",
|
"filter": "Filter",
|
||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
"refresh": "Refresh",
|
"refresh": "Refresh",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { t } from "i18next";
|
|||||||
import { useSpoolmanFilamentFilter, useSpoolmanMaterials } from "../../components/otherModels";
|
import { useSpoolmanFilamentFilter, useSpoolmanMaterials } from "../../components/otherModels";
|
||||||
import { removeUndefined } from "../../utils/filtering";
|
import { removeUndefined } from "../../utils/filtering";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { RightOutlined } from "@ant-design/icons";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
description?: string;
|
description?: string;
|
||||||
@@ -155,7 +156,7 @@ const SpoolSelectModal: React.FC<Props> = ({ description, onContinue }) => {
|
|||||||
}),
|
}),
|
||||||
])}
|
])}
|
||||||
/>
|
/>
|
||||||
<Row>
|
<Row gutter={[10, 10]}>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={isAllFilteredSelected}
|
checked={isAllFilteredSelected}
|
||||||
@@ -192,9 +193,11 @@ const SpoolSelectModal: React.FC<Props> = ({ description, onContinue }) => {
|
|||||||
{t("printing.spoolSelect.showArchived")}
|
{t("printing.spoolSelect.showArchived")}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
<Col span={24}>
|
||||||
</Space>
|
|
||||||
<Button
|
<Button
|
||||||
|
type="primary"
|
||||||
|
icon={<RightOutlined />}
|
||||||
|
iconPosition="end"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (selectedItems.length === 0) {
|
if (selectedItems.length === 0) {
|
||||||
messageApi.open({
|
messageApi.open({
|
||||||
@@ -205,7 +208,12 @@ const SpoolSelectModal: React.FC<Props> = ({ description, onContinue }) => {
|
|||||||
}
|
}
|
||||||
onContinue(dataSource.filter((spool) => selectedItems.includes(spool.id)));
|
onContinue(dataSource.filter((spool) => selectedItems.includes(spool.id)));
|
||||||
}}
|
}}
|
||||||
></Button>
|
>
|
||||||
|
{t("buttons.continue")}
|
||||||
|
</Button>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
</Space>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user