# Automatically hide flows (e.g show single flow tab only)

**URL:** <https://discourse.nodered.org/t/automatically-hide-flows-e-g-show-single-flow-tab-only/56164>\
**Category:** General\
**Created:** [5 January 2022 16:36 UTC](https://discourse.nodered.org/t/automatically-hide-flows-e-g-show-single-flow-tab-only/56164 "2022-01-05T16:36:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dunken](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@Dunken](https://discourse.nodered.org/u/Dunken)\
**Post date:** [5 January 2022 16:36 UTC](https://discourse.nodered.org/t/automatically-hide-flows-e-g-show-single-flow-tab-only/56164/1 "2022-01-05T16:36:12Z")

</div>

As far as I know I can't show a single flow tab of interest without manually hiding the others. I would like to pass on at startup of the NR UI which flow tab should be visible. Can anybody help to get me started (it would be okay for me to customize code)?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [5 January 2022 16:51 UTC](https://discourse.nodered.org/t/automatically-hide-flows-e-g-show-single-flow-tab-only/56164/2 "2022-01-05T16:51:44Z")

</div>

As you say, there isn't an easy way to do this, but there are some possible ways forward if you want to add some custom code.

- Using `editorTheme` in your settings file, you can provided a custom script that should get loaded into the editor page - that would allow you to inject some custom code.
- The editor stores an object in the browser's localStorage called `hiddenTabs` (encoded as a JSON string). This object is a list of the tabs that should be hidden. For example:

```auto
{"e0ff5bf34622f2b3":true, "ac75529fa861d05e":true, "66424986dcb5617a":true}

```

- It would be possible to inject some code into the editor that sets `hiddenTabs` to the desired set of hidden tabs:

```auto
RED.settings.setLocal("hiddenTabs",JSON.stringify({id1: true, id2: true, ...));

```

This is a bit awkward if what you have is the id of the tab you _do_ want to show - rather than a list of the tab id's you don't want to show.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 January 2022 16:52 UTC](https://discourse.nodered.org/t/automatically-hide-flows-e-g-show-single-flow-tab-only/56164/3 "2022-01-19T16:52:00Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
