made getSearchParams a private method

This commit is contained in:
David Kennedy 2024-10-31 12:58:43 -04:00
parent a377daaf8d
commit e26565c947
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -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