mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
bug fix
This commit is contained in:
parent
a60400bf16
commit
d9365414bc
2 changed files with 4 additions and 7 deletions
|
@ -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) {
|
loadTable(page, sortBy = this.currentSortBy, order = this.currentOrder, scroll = this.scrollToTable, searchTerm =this.currentSearchTerm, portfolio = this.portfolioValue) {
|
||||||
|
|
||||||
|
console.log("in loadTable");
|
||||||
// --------- SEARCH
|
// --------- SEARCH
|
||||||
let searchParams = new URLSearchParams(
|
let searchParams = new URLSearchParams(
|
||||||
{
|
{
|
||||||
|
@ -2124,9 +2125,6 @@ class MembersTable extends LoadTableBase {
|
||||||
memberList.innerHTML = '';
|
memberList.innerHTML = '';
|
||||||
|
|
||||||
const UserPortfolioPermissionChoices = data.UserPortfolioPermissionChoices;
|
const UserPortfolioPermissionChoices = data.UserPortfolioPermissionChoices;
|
||||||
const invited = 'Invited';
|
|
||||||
const invalid_date = 'Invalid date';
|
|
||||||
|
|
||||||
|
|
||||||
let existingExtraActionsHeader = document.querySelector('.extra-actions-header');
|
let existingExtraActionsHeader = document.querySelector('.extra-actions-header');
|
||||||
|
|
||||||
|
@ -2150,7 +2148,8 @@ class MembersTable extends LoadTableBase {
|
||||||
const domain_urls = member.domain_urls;
|
const domain_urls = member.domain_urls;
|
||||||
const domain_names = member.domain_names;
|
const domain_names = member.domain_names;
|
||||||
const num_domains = domain_urls.length;
|
const num_domains = domain_urls.length;
|
||||||
|
const last_active = this.handleLastActive(member.last_active);
|
||||||
|
|
||||||
let kebob = '';
|
let kebob = '';
|
||||||
|
|
||||||
if (hasEditPermission) {
|
if (hasEditPermission) {
|
||||||
|
@ -2172,7 +2171,7 @@ class MembersTable extends LoadTableBase {
|
||||||
// modalDescription = `They will no longer be able to access this organization. \n
|
// modalDescription = `They will no longer be able to access this organization. \n
|
||||||
// This action cannot be undone.`;
|
// This action cannot be undone.`;
|
||||||
|
|
||||||
const modalSubmit = g`
|
const modalSubmit = `
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="usa-button usa-button--secondary usa-modal__submit"
|
class="usa-button usa-button--secondary usa-modal__submit"
|
||||||
data-pk = ${member_id}
|
data-pk = ${member_id}
|
||||||
|
@ -2273,7 +2272,6 @@ class MembersTable extends LoadTableBase {
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
const last_active = this.handleLastActive(member.last_active);
|
|
||||||
|
|
||||||
const action_url = member.action_url;
|
const action_url = member.action_url;
|
||||||
const action_label = member.action_label;
|
const action_label = member.action_label;
|
||||||
|
|
|
@ -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>
|
<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 %}
|
{% comment %} Stores the json endpoint in a url for easier access {% endcomment %}
|
||||||
{% url 'get_portfolio_members_json' as url %}
|
{% 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>
|
<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">
|
<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">
|
<div class="section-outlined__header margin-bottom-3 grid-row">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue