From 4e4f318c710456bf307a93063a30ca1d0c9d6ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Tue, 24 Mar 2026 16:26:24 +0100 Subject: [PATCH] fix: Unable to add extension in DocumentsHeaderLeft extension point - EXO-85544 Before this fix, it is not possible to add an extension in extension point DocumentsHeaderLeft because the js load-group is missing. In addition, the call to Vue.prototype.includeExtensions(...) is missing for the Documents application --- .../main/webapp/WEB-INF/gatein-resources.xml | 27 +++++++++++++++++++ .../src/main/webapp/js/documentLeftHeader.js | 1 + .../src/main/webapp/vue-app/documents/main.js | 1 + 3 files changed, 29 insertions(+) create mode 100644 documents-webapp/src/main/webapp/js/documentLeftHeader.js diff --git a/documents-webapp/src/main/webapp/WEB-INF/gatein-resources.xml b/documents-webapp/src/main/webapp/WEB-INF/gatein-resources.xml index dedb4289b..490a54ecf 100644 --- a/documents-webapp/src/main/webapp/WEB-INF/gatein-resources.xml +++ b/documents-webapp/src/main/webapp/WEB-INF/gatein-resources.xml @@ -27,6 +27,30 @@ true + + DocumentsLeftHeaderExtension + documentLeftHeaderGRP + + + extensionRegistry + + + eXoVueI18n + + + vue + + + vuetify + + + commonVueComponents + + + Documents @@ -67,6 +91,9 @@ DocumentsDraggable + + DocumentsLeftHeaderExtension + applicationToolbarComponent diff --git a/documents-webapp/src/main/webapp/js/documentLeftHeader.js b/documents-webapp/src/main/webapp/js/documentLeftHeader.js new file mode 100644 index 000000000..24ba173f9 --- /dev/null +++ b/documents-webapp/src/main/webapp/js/documentLeftHeader.js @@ -0,0 +1 @@ +//this file is necessary to initialize the js group documentLeftHeaderGRP to add extensions from other addons diff --git a/documents-webapp/src/main/webapp/vue-app/documents/main.js b/documents-webapp/src/main/webapp/vue-app/documents/main.js index 7b0f4c98c..a5e89de04 100644 --- a/documents-webapp/src/main/webapp/vue-app/documents/main.js +++ b/documents-webapp/src/main/webapp/vue-app/documents/main.js @@ -178,6 +178,7 @@ export async function init(appId, canEdit, settings, settingsSaveUrl) { vuetify: Vue.prototype.vuetifyOptions, i18n }, `#${appId}`, 'Documents'); + Vue.prototype.$utils.includeExtensions('LeftHeaderExtension'); } async function getSubcategoryIds(categoryIds, depth) {