There is an idea on the Idea Exchange about looking for a way to close all tabs in a Lightning Console App. It’s an existing option in Classic that hasn’t yet made its way to Lightning.
I’ve spent way too much time manually closing tabs and wanted a way to make this easier.
There is some debate in the comments on the idea exchange about whether or not to leave pinned tabs open when performing a Close All tabs. I designed my component to take a single parameter to specify if pinned tabs should be closed or left open.
It’s easy to implement on the Utility Bar.
When selected, it pops up a Close Tabs button and the component takes care of the rest.
The component consists of three parts:
- Markup (closeConsoleTabs.cmp)
- Design (parameter) File (closeConsoleTabs.design)
You can get the complete source code and installation instructions here:
Check it out and take advantage of a great time saver.