Make users online title say to login to view

This commit is contained in:
David Rowe 2016-10-07 15:25:47 +13:00
parent 4ca0048ec9
commit c637649805

View file

@ -559,7 +559,7 @@ var usersWindow = (function () {
}); });
Overlays.editOverlay(windowHeading, { Overlays.editOverlay(windowHeading, {
text: linesOfUsers.length > 0 ? "Users online" : "No users online" text: isLoggedIn ? (linesOfUsers.length > 0 ? "Users online" : "No users online") : "Users online - log in to view"
}); });
} }
@ -1028,7 +1028,7 @@ var usersWindow = (function () {
color: WINDOW_HEADING_COLOR, color: WINDOW_HEADING_COLOR,
alpha: WINDOW_HEADING_ALPHA, alpha: WINDOW_HEADING_ALPHA,
backgroundAlpha: 0.0, backgroundAlpha: 0.0,
text: "No users online", text: "Users online",
font: WINDOW_FONT, font: WINDOW_FONT,
visible: false visible: false
}); });