forked from External/greenlight
GRN2-247: Added Active Pending Banned Deleted tabs to manage users (#816)
* Added Active Pending Banned Deleted tabs to manage users * Removed hard coded strings * Fixed issues with sign in flow * Fixed issues with rooms not deleting
This commit is contained in:
committed by
Jesus Federico
parent
03bde37a2b
commit
49def8f405
@ -69,10 +69,12 @@ function searchPage() {
|
||||
|
||||
// Check if the user filtered by role
|
||||
var role = new URL(location.href).searchParams.get('role')
|
||||
var tab = new URL(location.href).searchParams.get('tab')
|
||||
|
||||
var url = window.location.pathname + "?page=1&search=" + search
|
||||
|
||||
if (role) { url += "&role=" + role }
|
||||
if (tab) { url += "&tab=" + tab }
|
||||
|
||||
window.location.replace(addRecordingTable(url));
|
||||
}
|
||||
@ -80,12 +82,16 @@ function searchPage() {
|
||||
// Clears the search bar
|
||||
function clearSearch() {
|
||||
var role = new URL(location.href).searchParams.get('role')
|
||||
var tab = new URL(location.href).searchParams.get('tab')
|
||||
|
||||
var url = window.location.pathname + "?page=1"
|
||||
|
||||
if (role) { url += "&role=" + role }
|
||||
if (tab) { url += "&tab=" + tab }
|
||||
|
||||
window.location.replace(addRecordingTable(url));
|
||||
|
||||
var search_params = new URLSearchParams(window.location.search)
|
||||
}
|
||||
|
||||
function addRecordingTable(url) {
|
||||
|
Reference in New Issue
Block a user