mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 05:54:11 +02:00
made getSearchParams a private method
This commit is contained in:
parent
a377daaf8d
commit
e26565c947
1 changed files with 2 additions and 2 deletions
|
@ -1329,7 +1329,7 @@ class BaseTable {
|
||||||
* @param {*} status - The status filter applied {ready, dns_needed, etc}
|
* @param {*} status - The status filter applied {ready, dns_needed, etc}
|
||||||
* @param {string} portfolio - The portfolio id
|
* @param {string} portfolio - The portfolio id
|
||||||
*/
|
*/
|
||||||
getSearchParams(page, sortBy, order, searchTerm, status, portfolio) {
|
#getSearchParams(page, sortBy, order, searchTerm, status, portfolio) {
|
||||||
let searchParams = new URLSearchParams(
|
let searchParams = new URLSearchParams(
|
||||||
{
|
{
|
||||||
"page": page,
|
"page": page,
|
||||||
|
@ -1453,7 +1453,7 @@ class BaseTable {
|
||||||
*/
|
*/
|
||||||
loadTable(page, sortBy = this.currentSortBy, order = this.currentOrder, scroll = this.scrollToTable, status = this.currentStatus, searchTerm =this.currentSearchTerm, portfolio = this.portfolioValue) {
|
loadTable(page, sortBy = this.currentSortBy, order = this.currentOrder, scroll = this.scrollToTable, status = this.currentStatus, searchTerm =this.currentSearchTerm, portfolio = this.portfolioValue) {
|
||||||
// --------- SEARCH
|
// --------- SEARCH
|
||||||
let searchParams = this.getSearchParams(page, sortBy, order, searchTerm, status, portfolio);
|
let searchParams = this.#getSearchParams(page, sortBy, order, searchTerm, status, portfolio);
|
||||||
|
|
||||||
// --------- FETCH DATA
|
// --------- FETCH DATA
|
||||||
// fetch json of page of domains, given params
|
// fetch json of page of domains, given params
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue