diff --git a/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.unit.ts b/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.unit.ts index bd21177ca2..04f472e610 100644 --- a/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.unit.ts +++ b/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.unit.ts @@ -207,7 +207,7 @@ describe("CollaborativeTextEditorElement", () => { const boardMenu = wrapper.findComponent( CollaborativeTextEditorElementMenu ); - boardMenu.vm.$emit("delete:element", Promise.resolve(true)); + boardMenu.vm.$emit("delete:element"); await nextTick(); expect(wrapper.emitted("delete:element")).toBeTruthy(); diff --git a/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.vue b/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.vue index 8850eaec26..464e22eb1a 100644 --- a/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.vue +++ b/src/modules/feature/board-collaborative-text-editor-element/CollaborativeTextEditorElement.vue @@ -88,13 +88,8 @@ const onKeydownArrow = (event: KeyboardEvent) => { emit("move-keyboard:edit", event); } }; -const onDelete = async (confirmation: Promise) => { - const shouldDelete = await confirmation; - if (shouldDelete) { - emit("delete:element", props.element.id); - } -}; +const onDelete = () => emit("delete:element", props.element.id); const onMoveUp = () => emit("move-up:edit"); const onMoveDown = () => emit("move-down:edit"); diff --git a/src/modules/feature/board/board/BoardColumnGhost.unit.ts b/src/modules/feature/board/board/BoardColumnGhost.unit.ts index c3137da784..f866c686fd 100644 --- a/src/modules/feature/board/board/BoardColumnGhost.unit.ts +++ b/src/modules/feature/board/board/BoardColumnGhost.unit.ts @@ -13,6 +13,9 @@ describe("BoardColumnGhost", () => { global: { plugins: [createTestingVuetify(), createTestingI18n()], }, + props: { + isListBoard: false, + }, }); return { wrapper }; diff --git a/src/modules/feature/board/board/BoardColumnGhost.vue b/src/modules/feature/board/board/BoardColumnGhost.vue index 6befe3bf41..1f38de8ac0 100644 --- a/src/modules/feature/board/board/BoardColumnGhost.vue +++ b/src/modules/feature/board/board/BoardColumnGhost.vue @@ -1,8 +1,9 @@