From 976a292aada99a97ebb1ce842b36a7eb56be46cc Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 4 Nov 2024 15:00:10 +0100 Subject: [PATCH 1/2] fix(Editor.vue): provide default for injected `isEmbedded` The property `isEmbedded` only gets provided in `ViewerComponent.vue`. When the editor gets created though other means, e.g. via editor API (`editor.js`), `isEmbedded` is not provided and thus produces an error: > Injection "isEmbedded" not found Signed-off-by: Jonas --- src/components/Editor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 73b223a2a99..4c59ba8ba7f 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -176,7 +176,9 @@ export default { return val }, - inject: ['isEmbedded'], + inject: { + isEmbedded: { default: false }, + }, props: { richWorkspace: { type: Boolean, From 8bdf7aef40192e9dd562575a20b2a98f340f9495 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 4 Nov 2024 15:26:26 +0100 Subject: [PATCH 2/2] fix(assistant): Provide missing properties to Nextcloud Vue components Signed-off-by: Jonas --- src/components/Assistant.vue | 2 +- src/components/Modal/Translate.vue | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Assistant.vue b/src/components/Assistant.vue index 487448fd502..1b09040693c 100644 --- a/src/components/Assistant.vue +++ b/src/components/Assistant.vue @@ -47,7 +47,7 @@ class="floating-menu--badge" /> - +

diff --git a/src/components/Modal/Translate.vue b/src/components/Modal/Translate.vue index dc688c02ce4..8b04b56e0a9 100644 --- a/src/components/Modal/Translate.vue +++ b/src/components/Modal/Translate.vue @@ -4,7 +4,10 @@ -->