How to disable / enable aui-tabs in jira cloud based on conditions

Hi folks,
Can I know how can we disable / enable the below aui-tabs? I have a requirement to enable only based on some condition not otherwise… I tried with multiple approaches but nothing seems to work… TIA!

tab

Hi @NishantV

Not sure if this really fit your needs but there is a way to disable the tabs. It is done by adding aui-tabs-disabled class to the tabs group. You can find out more about in the documentation here. There is a Codepen in it too, so you can give it a try right then and there.

Cheers,
Anmol