AI answer did not solve the issue
[sumeyye.kurtulus] said: Hello,
I can suggest you to hide the tab programmatically inside your
app.component.ts
//app.component.ts ngOnInit() { // Hide idle session timeout tab specifically const hideIdleTab = () => { const tabs = document.querySelectorAll('.nav-link'); tabs.forEach(tab => { if (tab.textContent?.toLowerCase().includes('idle session timeout')) { tab.closest('.nav-item')?.remove(); } }); }; hideIdleTab(); // Watch for dynamic content new MutationObserver(hideIdleTab).observe(document.body, { childList: true, subtree: true }); }
You can let us know if you need further assistance. Thank you for your cooperation.
Hello,
Your solution worked. Thank you so much for you quick assistance.
[alper] said: you can hide it visually by adding the following CSS
#IdleSessionTimeoutTab-tab { display: none; }
- for MVC there's a global styling file =>
global-styles.css
in thewwwroot
folder.- for Angular
styles.scss
in theangular/src
folder.
i tried your solution inside root and outside in styles.scss, but i can still see the tab and its content.
[maliming] said: hi
Do you mean you don't need this Idle feature and want to disable/hide it completely?
Thanks,
yes, we want to disable and hide this feature completely.
AI agent answer does not work