Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-kennedy-ecs committed Oct 23, 2024
1 parent a60400b commit d936541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/registrar/assets/js/get-gov.js
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,7 @@ class MembersTable extends LoadTableBase {
*/
loadTable(page, sortBy = this.currentSortBy, order = this.currentOrder, scroll = this.scrollToTable, searchTerm =this.currentSearchTerm, portfolio = this.portfolioValue) {

console.log("in loadTable");
// --------- SEARCH
let searchParams = new URLSearchParams(
{
Expand Down Expand Up @@ -2124,9 +2125,6 @@ class MembersTable extends LoadTableBase {
memberList.innerHTML = '';

const UserPortfolioPermissionChoices = data.UserPortfolioPermissionChoices;
const invited = 'Invited';
const invalid_date = 'Invalid date';


let existingExtraActionsHeader = document.querySelector('.extra-actions-header');

Expand All @@ -2150,7 +2148,8 @@ class MembersTable extends LoadTableBase {
const domain_urls = member.domain_urls;
const domain_names = member.domain_names;
const num_domains = domain_urls.length;

const last_active = this.handleLastActive(member.last_active);

let kebob = '';

if (hasEditPermission) {
Expand All @@ -2172,7 +2171,7 @@ class MembersTable extends LoadTableBase {
// modalDescription = `They will no longer be able to access this organization. \n
// This action cannot be undone.`;

const modalSubmit = g`
const modalSubmit = `
<button type="button"
class="usa-button usa-button--secondary usa-modal__submit"
data-pk = ${member_id}
Expand Down Expand Up @@ -2273,7 +2272,6 @@ class MembersTable extends LoadTableBase {
`
}

const last_active = this.handleLastActive(member.last_active);

const action_url = member.action_url;
const action_label = member.action_label;
Expand Down
1 change: 0 additions & 1 deletion src/registrar/templates/includes/members_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<span id="portfolio-js-value" class="display-none" data-portfolio="{{ portfolio.id }}" data-has-edit-permission="{{ has_edit_members_portfolio_permission }}"></span>
{% comment %} Stores the json endpoint in a url for easier access {% endcomment %}
{% url 'get_portfolio_members_json' as url %}
<!-- {% url 'get_user_domain_count' as url %} -->
<span id="get_members_json_url" class="display-none">{{url}}</span>
<section class="section-outlined members margin-top-0 section-outlined--border-base-light" id="members">
<div class="section-outlined__header margin-bottom-3 grid-row">
Expand Down

0 comments on commit d936541

Please sign in to comment.