|
@@ -30,6 +30,7 @@ const PageDuplicateModal = (props) => {
|
|
|
const [getSubordinatedError, setGetSuborinatedError] = useState(null);
|
|
const [getSubordinatedError, setGetSuborinatedError] = useState(null);
|
|
|
|
|
|
|
|
const [isDuplicateRecursively, setIsDuplicateRecursively] = useState(true);
|
|
const [isDuplicateRecursively, setIsDuplicateRecursively] = useState(true);
|
|
|
|
|
+ const [isDuplicateRecursivelyWithoutExistPath, setIsDuplicateRecursivelyWithoutExistPath] = useState(true);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* change pageNameInput for PagePathAutoComplete
|
|
* change pageNameInput for PagePathAutoComplete
|
|
@@ -51,6 +52,10 @@ const PageDuplicateModal = (props) => {
|
|
|
setIsDuplicateRecursively(!isDuplicateRecursively);
|
|
setIsDuplicateRecursively(!isDuplicateRecursively);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ function changeIsDuplicateRecursivelyWithoutExistPathHandler() {
|
|
|
|
|
+ setIsDuplicateRecursivelyWithoutExistPath(!isDuplicateRecursivelyWithoutExistPath);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const getSubordinatedList = useCallback(async() => {
|
|
const getSubordinatedList = useCallback(async() => {
|
|
|
try {
|
|
try {
|
|
|
const res = await appContainer.apiv3Get('/pages/subordinated-list', { path });
|
|
const res = await appContainer.apiv3Get('/pages/subordinated-list', { path });
|
|
@@ -141,13 +146,13 @@ const PageDuplicateModal = (props) => {
|
|
|
name="withoutExistRecursively"
|
|
name="withoutExistRecursively"
|
|
|
id="cbDuplicatewithoutExistRecursively"
|
|
id="cbDuplicatewithoutExistRecursively"
|
|
|
type="checkbox"
|
|
type="checkbox"
|
|
|
- checked={isDuplicateRecursively}
|
|
|
|
|
- onChange={changeIsDuplicateRecursivelyHandler}
|
|
|
|
|
|
|
+ checked={isDuplicateRecursivelyWithoutExistPath}
|
|
|
|
|
+ onChange={changeIsDuplicateRecursivelyWithoutExistPathHandler}
|
|
|
/>
|
|
/>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
<label className="custom-control-label" htmlFor="cbDuplicateRecursively">
|
|
<label className="custom-control-label" htmlFor="cbDuplicateRecursively">
|
|
|
- { t('modal_duplicate.label.Duplicate with child') }
|
|
|
|
|
|
|
+ { t('modal_duplicate.label.Duplicate without exist path') }
|
|
|
</label>
|
|
</label>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div>
|
|
<div>
|