Skip to content

Commit

Permalink
WIP not much done :)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorCapCoder committed Jun 7, 2024
1 parent b8b141a commit d0f0c60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ export class ContentElementService {
async replaceElementWithPlaceholder(contextExternalToolId: EntityId) {
const externalToolElements: ExternalToolElementNodeEntity[] = await this.findElementsById(contextExternalToolId);

externalToolElements.forEach((element) => {
externalToolElements.forEach(async (element) => {
if (element.parentId) {
const boardNode = this.boardDoRepo.findById(element.parentId);

// TODO
this.create(element.ancestorIds, BoardNodeType.PLACEHOLDER);
await this.create(boardNode, BoardNodeType.PLACEHOLDER);
const placeholder = new PlaceholderElementNodeEntity({
title,
type,
Expand Down
2 changes: 2 additions & 0 deletions apps/server/src/shared/domain/domainobject/board/card.do.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { PlaceholderElement } from '@shared/domain/domainobject';
import { DrawingElement } from '@shared/domain/domainobject/board/drawing-element.do';
import { BoardComposite, BoardCompositeProps } from './board-composite.do';
import { CollaborativeTextEditorElement } from './collaborative-text-editor-element.do';
Expand Down Expand Up @@ -33,6 +34,7 @@ export class Card extends BoardComposite<CardProps> {
domainObject instanceof RichTextElement ||
domainObject instanceof SubmissionContainerElement ||
domainObject instanceof ExternalToolElement ||
domainObject instanceof PlaceholderElement ||
domainObject instanceof CollaborativeTextEditorElement;
return allowed;
}
Expand Down

0 comments on commit d0f0c60

Please sign in to comment.