Layout
This commit is contained in:
+1
-1
@@ -17,7 +17,6 @@ function renderSections() {
|
||||
"leaderboard-section": true,
|
||||
"stats-section": statsLoaded,
|
||||
rules: true,
|
||||
"mailing-list": !!token && !subscribed,
|
||||
"share-controls": !!currentShareText,
|
||||
more: true,
|
||||
donate: true,
|
||||
@@ -32,6 +31,7 @@ function renderSections() {
|
||||
document.querySelectorAll("[data-panel]").forEach((panel) => {
|
||||
panel.hidden = panel.id !== selectedSection;
|
||||
});
|
||||
$("mailing-list").hidden = !token || subscribed;
|
||||
$("section-hint").hidden = selectedSection !== null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user