diff --git a/application/single_app/config.py b/application/single_app/config.py index 140c40b08..b56b998d7 100644 --- a/application/single_app/config.py +++ b/application/single_app/config.py @@ -98,7 +98,7 @@ EXECUTOR_TYPE = 'thread' EXECUTOR_MAX_WORKERS = 30 SESSION_TYPE = 'filesystem' -VERSION = "0.261.028" +VERSION = "0.261.029" IS_DEVELOPMENT = is_development_env_enabled() # Opt-out for deployments where App Service Easy Auth is active but the platform diff --git a/application/single_app/static/js/workspace/group-documents-sharing.js b/application/single_app/static/js/workspace/group-documents-sharing.js index 2bb70ea3a..cea85e569 100644 --- a/application/single_app/static/js/workspace/group-documents-sharing.js +++ b/application/single_app/static/js/workspace/group-documents-sharing.js @@ -76,6 +76,20 @@ function setupGroupShareEventListeners() { } } +window.bindGroupDocumentShareButton = function(container, doc) { + const shareButton = container.querySelector('.group-document-share-btn'); + if (!shareButton) { + return; + } + + const documentId = doc.id; + const fileName = doc.file_name || ''; + shareButton.addEventListener('click', function(event) { + event.preventDefault(); + window.shareGroupDocument(documentId, fileName); + }); +}; + // Main function to open share modal window.shareGroupDocument = function(documentId, fileName) { currentGroupDocumentId = documentId; diff --git a/application/single_app/templates/group_workspaces.html b/application/single_app/templates/group_workspaces.html index 68b120eaa..b715d2486 100644 --- a/application/single_app/templates/group_workspaces.html +++ b/application/single_app/templates/group_workspaces.html @@ -4140,7 +4140,7 @@