diff --git a/src/registrar/assets/js/get-gov.js b/src/registrar/assets/js/get-gov.js index 5d4d6d386..99de55427 100644 --- a/src/registrar/assets/js/get-gov.js +++ b/src/registrar/assets/js/get-gov.js @@ -1505,10 +1505,8 @@ class DomainRequestsTable extends LoadTableBase { } toggleExportButton(requests) { - console.log("Toggling Export Button Visibility"); const exportButton = document.getElementById('export-csv'); if (exportButton) { - console.log(`Current requests length: ${requests.length}`); if (requests.length > 0) { showElement(exportButton); } else { @@ -1562,7 +1560,7 @@ class DomainRequestsTable extends LoadTableBase { return; } - // Call toggleExportButton to manage button visibility + // Manage "export as CSV" visibility for domain requests this.toggleExportButton(data.domain_requests); // handle the display of proper messaging in the event that no requests exist in the list or search returns no results diff --git a/src/registrar/templates/includes/domain_requests_table.html b/src/registrar/templates/includes/domain_requests_table.html index 79e758585..4bef23870 100644 --- a/src/registrar/templates/includes/domain_requests_table.html +++ b/src/registrar/templates/includes/domain_requests_table.html @@ -49,6 +49,7 @@ + {% if portfolio %}
+ {% endif %} {% if portfolio %} diff --git a/src/registrar/utility/csv_export.py b/src/registrar/utility/csv_export.py index 89ce42c0c..ce710ef53 100644 --- a/src/registrar/utility/csv_export.py +++ b/src/registrar/utility/csv_export.py @@ -645,12 +645,6 @@ class DomainRequestsDataType: ) queryset = cls.get_queryset(request) - # TO REMOVE - print("Queryset IDs:", list(queryset.values_list("id", flat=True))) - # TO REMOVE - for request in queryset: - print("Processing request:", request) - for request in queryset: writer.writerow( [