feat(webui): remove menubar Channel item; brand acts as channel selector only on dashboard; hover to open; commit text toned down
This commit is contained in:
parent
71cf7a927f
commit
9e95ccdca4
3 changed files with 7 additions and 7 deletions
|
|
@ -76,6 +76,12 @@ window.addEventListener('DOMContentLoaded', ()=>{
|
|||
if('scrollRestoration' in history){ history.scrollRestoration = 'manual'; }
|
||||
measureBars();
|
||||
loadChannels();
|
||||
// Open brand dropdown on hover (desktop) for the dashboard
|
||||
const brandDetails = document.getElementById('brand-chans');
|
||||
if(brandDetails){
|
||||
brandDetails.addEventListener('mouseenter', ()=>{ brandDetails.setAttribute('open',''); });
|
||||
brandDetails.addEventListener('mouseleave', ()=>{ brandDetails.removeAttribute('open'); });
|
||||
}
|
||||
if(document.getElementById('channel')){
|
||||
fetch('/api/channels').then(r=>r.json()).then(arr=>{ const sel=document.getElementById('channel'); arr.forEach(c=>{ const o=document.createElement('option'); o.value=c; o.textContent=c; sel.appendChild(o); }); }).catch(()=>{});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue