Make first one silent
This commit is contained in:
parent
d2a057d105
commit
e369d2f4de
@ -167,8 +167,8 @@ async function onPageLoad(){
|
||||
await populateUserInfoFields(UserInfo);
|
||||
}
|
||||
if(document.getElementById("admin-settings")){
|
||||
await listActivationCodes();
|
||||
await listUsers();
|
||||
await listActivationCodes(true);
|
||||
await listUsers(true);
|
||||
}
|
||||
}
|
||||
if(currentSite === "home" && currentPage === "account") {
|
||||
@ -367,12 +367,12 @@ async function addActivationCodes() {
|
||||
});
|
||||
}
|
||||
|
||||
async function listUsers() {
|
||||
async function listUsers(silent=false) {
|
||||
const data = {
|
||||
action: "list_users",
|
||||
};
|
||||
|
||||
doAction('/account', data, "User list retrieved Successfully!", "User list retrieval failed.").then((result) => {
|
||||
doAction('/account', data, "User list retrieved Successfully!", "User list retrieval failed.", silent).then((result) => {
|
||||
|
||||
if (result && result.Status === "Success") {
|
||||
displayList(result.Users, "userListTable", deleteUser);
|
||||
@ -380,12 +380,12 @@ async function listUsers() {
|
||||
});
|
||||
}
|
||||
|
||||
async function listActivationCodes() {
|
||||
async function listActivationCodes(silent=false) {
|
||||
const data = {
|
||||
action: "list_activation_codes",
|
||||
};
|
||||
|
||||
doAction('/account', data, "Activation code list retrieved Successfully!", "Activation code list retrieval failed.").then((result) => {
|
||||
doAction('/account', data, "Activation code list retrieved Successfully!", "Activation code list retrieval failed.", silent).then((result) => {
|
||||
displayList(result.ActivationCodes, "codeListTable", deleteActivationCode);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user