Skip to content

Commit

Permalink
Merge branch 'develop' into template-page
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Mar 26, 2024
2 parents 7a77fb6 + fd0c30e commit b0fba18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/BlockContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const contextMenuOptions: ContextMenuOption[] = [
label: "Convert To Link",
action: () => {
blockController.getSelectedBlocks().forEach((block: Block) => {
if (block.isSVG()) {
if (block.isSVG() || block.isImage()) {
const parentBlock = block.getParentBlock();
if (!parentBlock) return;
const newBlockObj = getBlockTemplate("fit-container");
Expand All @@ -152,7 +152,7 @@ const contextMenuOptions: ContextMenuOption[] = [
});
},
condition: () =>
(props.block.isContainer() || props.block.isText()) &&
(props.block.isContainer() || props.block.isText() || props.block.isImage()) &&
!props.block.isLink() &&
!props.block.isExtendedFromComponent() &&
!props.block.isRoot(),
Expand Down

0 comments on commit b0fba18

Please sign in to comment.