Compare commits

..
1 Commits
2 changed files with 18 additions and 14 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
{
"VERSION": "v0.7.40",
"VERSION_NUMBER": "0.7.40",
"BUILD_DATE": "2026-06-26T13:38:31.838Z"
"VERSION": "v0.7.41",
"VERSION_NUMBER": "0.7.41",
"BUILD_DATE": "2026-06-26T13:43:02.547Z"
}
+15 -11
View File
@@ -419,25 +419,24 @@ const versionInfo = await getVersion();
if (hamburgerInstance) {
hamburgerInstance.animateTo('arrow_left');
}
const historyEnabled = localStorage.getItem('relayConnectionHistory') === 'true';
connectionHistoryEnabled = historyEnabled;
divSideNavBody.innerHTML = `
<div id="divRelaySettings" class="sidenavSection">
<div class="sidenavSectionTitle">Relays</div>
<label class="sidenavRowToggle" for="chkShowConnectionHistory">
<span>Show connection history</span>
<input id="chkShowConnectionHistory" type="checkbox" />
</label>
<div id="divRelaySettings" style="display:flex;align-items:center;padding:4px 10px;cursor:pointer;font-size:80%;color:var(--primary-color);">
<span style="flex:1;">Show connection history</span>
<div id="divHistoryToggleCheckbox" class="divSvg" style="width:16px;height:16px;flex-shrink:0;">${historyEnabled ? SVG_CHECKED : SVG_UNCHECKED}</div>
</div>
`;
// Wire up the connection history toggle
const chkShowConnectionHistory = document.getElementById('chkShowConnectionHistory');
if (chkShowConnectionHistory) {
chkShowConnectionHistory.checked = localStorage.getItem('relayConnectionHistory') === 'true';
chkShowConnectionHistory.addEventListener('change', () => {
const checked = chkShowConnectionHistory.checked;
const divHistoryToggle = document.getElementById('divHistoryToggleCheckbox');
if (divHistoryToggle) {
const toggleHistory = () => {
const checked = !connectionHistoryEnabled;
connectionHistoryEnabled = checked;
localStorage.setItem('relayConnectionHistory', checked);
setRelayEventLogging(checked);
divHistoryToggle.innerHTML = checked ? SVG_CHECKED : SVG_UNCHECKED;
const wrap = document.getElementById('divRelayEventsWrap');
if (wrap) {
wrap.style.display = checked ? '' : 'none';
@@ -452,7 +451,12 @@ const versionInfo = await getVersion();
divRelayEvents.innerHTML = '';
}
}
};
divHistoryToggle.addEventListener('click', (e) => {
e.stopPropagation();
toggleHistory();
});
document.getElementById('divRelaySettings').addEventListener('click', toggleHistory);
}
// Initialize version bar buttons when sidenav opens (lazy load)