diff --git a/index.html b/index.html index 88391caa..0df31d89 100644 --- a/index.html +++ b/index.html @@ -1022,10 +1022,12 @@ const modal = document.getElementById('pathModal'); const mountList = document.getElementById('mount-list'); mountList.innerHTML = ''; + const currentMount = document.getElementById('mount-select-branches').value; fetch('/mounts') .then(r => r.json()) .then(mounts => { mounts.forEach(m => { + if (m.path === currentMount) return; const div = document.createElement('div'); div.className = 'mount-list-item'; div.innerHTML = '[' + m.type + '] ' + m.path; @@ -1037,6 +1039,9 @@ }; mountList.appendChild(div); }); + if (mountList.children.length === 0) { + mountList.innerHTML = '
No other mountpoints available
'; + } }) .catch(err => { console.error('Error loading mounts:', err);