@mmd-osm commented on this pull request.


> @@ -10,14 +10,21 @@
     URL.revokeObjectURL(url);
   };
 
+  OSM.showAlert = function (message) {
+    const modalBody = document.getElementById("osm_alert_message");
+    modalBody.textContent = message;
+    const alertModal = new 
bootstrap.Modal(document.getElementById("osm_alert_modal"));
+    alertModal.show();
+  };
+
   class DownloadUtil {
     static async handleExportSuccess(fetchResponse, filename) {
       try {
         const blob = await fetchResponse.response.blob();
         OSM.downloadBlob(blob, filename);
       } catch (err) {
         // eslint-disable-next-line no-alert

done

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6263#discussion_r2234117104
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/6263/review/3059671...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to