editor: hide replace button in readonly mode

This commit is contained in:
Abdullah Atta
2023-06-01 21:10:16 +05:00
committed by Abdullah Atta
parent 50ff39845a
commit 0a88502e59

View File

@@ -203,6 +203,7 @@ export function SearchReplacePopup(props: SearchReplacePopupProps) {
</Flex>
<Flex sx={{ flexDirection: "column" }}>
<Flex sx={{ alignItems: "center", height: "33.2px" }}>
{editor.isEditable && (
<ToolButton
toggled={isReplacing}
title="Toggle replace"
@@ -212,6 +213,7 @@ export function SearchReplacePopup(props: SearchReplacePopupProps) {
sx={{ mr: 0 }}
iconSize={"big"}
/>
)}
<ToolButton
toggled={false}
title="Previous match"