Test JS
This commit is contained in:
parent
083fa5ac9e
commit
29bdcda68c
@ -1,5 +1,9 @@
|
||||
let UserInfo = {};
|
||||
|
||||
function isLoggedIn(){
|
||||
return UserInfo.ID && UserInfo.ID > 0;
|
||||
}
|
||||
|
||||
async function handleResponse(data, successMessage, failureMessage) {
|
||||
const statusMessageContainer = document.getElementById("statusMessageContainer");
|
||||
|
||||
@ -182,7 +186,7 @@ async function onPageLoad() {
|
||||
await listUsers(true);
|
||||
}
|
||||
}
|
||||
if (currentSite === "home" && currentPage === "account") {
|
||||
if (currentSite === "home" && currentPage === "account" && isLoggedIn()) {
|
||||
await showDashboardGreeting();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user