Skip to content
Snippets Groups Projects
Unverified Commit 5feb596f authored by Nick Fitzpatrick's avatar Nick Fitzpatrick Committed by GitHub
Browse files

readonly check for Adhoc Question title click (#24345)

parent 7b76a94b
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,13 @@ function AhHocQuestionLeftSide(props) {
onOpenModal,
} = props;
const handleTitleClick = () => onOpenModal(MODAL_TYPES.SAVE);
const handleTitleClick = () => {
const query = question.query();
if (!query.readOnly()) {
onOpenModal(MODAL_TYPES.SAVE);
}
};
return (
<AdHocLeftSideRoot>
<ViewHeaderMainLeftContentContainer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment