From fb6ce92c3beb1a116a3ec7550e115c362c578f7a 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 ecf7a6517c6..076ee805ea6 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -170,7 +170,9 @@ export default { return val }, - inject: ['isEmbedded'], + inject: { + isEmbedded: { default: false }, + }, props: { richWorkspace: { type: Boolean, From 63089b36bbdeec204102453be3969928bf86ad00 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 @@ -->