diff --git a/sveltejs/public/build/bundle.js b/sveltejs/public/build/bundle.js index d886e24189a268d14bdf33b3426558f3cfeff5bf..387333d9cfe2c02866517e51dcf32e31b58b9db5 100644 Binary files a/sveltejs/public/build/bundle.js and b/sveltejs/public/build/bundle.js differ diff --git a/sveltejs/public/build/bundle.js.map b/sveltejs/public/build/bundle.js.map index 9cb8ddef8d89b5dfe6e4fe941b8fd87c7f168a15..44bb5876920f3f8271b925c48cb8ac9b77c4eb3f 100644 Binary files a/sveltejs/public/build/bundle.js.map and b/sveltejs/public/build/bundle.js.map differ diff --git a/sveltejs/src/InstallListProcessor.js b/sveltejs/src/InstallListProcessor.js index f9144060b26d7a5654fd7fe61f4df9c037cca7a1..2a89442dbf5db573c1f97db6ebb2415103d7319a 100644 --- a/sveltejs/src/InstallListProcessor.js +++ b/sveltejs/src/InstallListProcessor.js @@ -203,7 +203,17 @@ export const processInstallList = async () => { const projectsToActivate = []; const projectsToDownloadAndActivate = []; if (currentInstallList.length === 0) { - new Drupal.Message().add(Drupal.t('No projects selected'), { type: 'error' }); + const messageElement = document.querySelector('[data-drupal-message-id="install_message"]'); + + if (!messageElement) { + // If the message does not exist, create a new one. + new Drupal.Message().add(Drupal.t('No projects selected'), { type: 'error', id: 'install_message' }); + } else if (messageElement.classList.contains('visually-hidden')) { + // If the message exists but is visually hidden, remove the class and reset opacity. + messageElement.classList.remove('visually-hidden'); + messageElement.style.opacity = 1; + } + window.scrollTo({ top: 0, behavior: 'smooth' }); return; }