SHA256
Разделить среды и закрепить лицензии в HEADER 1.0
This commit is contained in:
@@ -70,6 +70,9 @@ function applyCountersToMountedToolbars() {
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined') window.addEventListener('shine:server-environment', () => {
|
||||
document.querySelectorAll('.toolbar-test-indicator').forEach(el => { el.hidden = state.serverEnvironment?.testMode !== true; });
|
||||
});
|
||||
let countersPushBound = false;
|
||||
function ensureCountersPushBound() {
|
||||
if (countersPushBound) return;
|
||||
@@ -138,9 +141,7 @@ export function renderToolbar(currentPageId, navigate) {
|
||||
btn.className = `toolbar-btn${item.pageId === active ? ' active' : ''}${isProfile ? ' toolbar-btn-profile' : ''}${isMessages ? ' toolbar-btn-messages' : ''}${isNetwork ? ' toolbar-btn-network' : ''}${item.hero ? ' toolbar-btn-hero' : ''}`;
|
||||
if (isProfile) {
|
||||
btn.innerHTML = `
|
||||
${iconHtml(item, `<span id="toolbar-connection-indicator" class="toolbar-connection-indicator is-unknown">
|
||||
<span class="toolbar-connection-dot" aria-hidden="true"></span>
|
||||
</span>`)}
|
||||
${iconHtml(item, `<span id="toolbar-test-indicator" class="toolbar-test-indicator"${state.serverEnvironment?.testMode === true ? '' : ' hidden'}>Test</span>`)}
|
||||
<span class="sr-only">${item.label}</span>
|
||||
`;
|
||||
} else if (isNetwork) {
|
||||
|
||||
Reference in New Issue
Block a user