fix: restore role-aware settings with hidden utility and sidebar logic
Build MCP Services / build-mcp-filesystem (push) Successful in 1m19s
Details
Build MCP Services / build-mcp-filesystem (push) Successful in 1m19s
Details
This commit is contained in:
parent
4cd89d038b
commit
0e71c0dc27
|
|
@ -201,3 +201,8 @@ a {
|
||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background: var(--text-muted);
|
background: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Visibility Utilities */
|
||||||
|
.hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,14 @@
|
||||||
document.querySelector('.doctor-only').classList.remove('hidden');
|
document.querySelector('.doctor-only').classList.remove('hidden');
|
||||||
document.querySelector('.header-title h1').innerText = 'Doctor Preferences';
|
document.querySelector('.header-title h1').innerText = 'Doctor Preferences';
|
||||||
document.querySelector('.header-title p').innerText = 'Manage your profile and clinical tool settings.';
|
document.querySelector('.header-title p').innerText = 'Manage your profile and clinical tool settings.';
|
||||||
|
|
||||||
|
// Hide admin sidebar links
|
||||||
|
document.querySelectorAll('.side-nav a').forEach(link => {
|
||||||
|
const text = link.innerText.toLowerCase();
|
||||||
|
if (text.includes('billing') || text.includes('staff') || text.includes('overview')) {
|
||||||
|
link.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue