|
|
@@ -226,7 +226,13 @@ const PageRenameModal = (props) => {
|
|
|
</ModalBody>
|
|
|
<ModalFooter>
|
|
|
<ApiErrorMessageList errs={errs} targetPath={pageNameInput} />
|
|
|
- <button type="button" className="btn btn-primary" onClick={rename}>Rename</button>
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ className="btn btn-primary"
|
|
|
+ onClick={rename}
|
|
|
+ disabled={(isRenameRecursively && isRenameRecursivelyWithoutExistPath && existingPaths.length !== 0)}
|
|
|
+ >Rename
|
|
|
+ </button>
|
|
|
</ModalFooter>
|
|
|
</Modal>
|
|
|
);
|