# Disable ui tab of Dashboard

**URL:** <https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000>\
**Category:** Dashboard\
**Created:** [17 September 2020 14:24 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000 "2020-09-17T14:24:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [17 September 2020 14:24 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/1 "2020-09-17T14:24:06Z")

</div>

Hello together,

I'm try to enable/disable in my node-red app. The Idea is disable at the beginnig my tabs and after a successfully login (only if success), then will be enable the tabs. I have try with this code but its not work properly.

```auto
{
    "tabs": {
        "enable": [
            "Tab1",
            "Tab 2",
            "Tab 3",
            "Tab 4"
        ]
    }
}

```

Then I would like some help with this, thanks.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 September 2020 20:34 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/2 "2020-09-17T20:34:52Z")

</div>

What have you done with that?

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 05:44 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/3 "2020-09-18T05:44:53Z")

</div>

sorry, I have putted in a change node and connected with a ui\_control node. But that do nothing with the tab

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 07:54 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/4 "2020-09-18T07:54:14Z")

</div>

Add a debug node showing what is going into the ui\_control node and screenshot that here please. Also a shot of the Dashboard Layout tab.

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 08:26 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/5 "2020-09-18T08:26:56Z")

</div>

Ok.

I have recieved the following in Debug Node

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/b/5b83a927edd7719c4e739b9c5c7e426524b59b58.png)

And this ist my Layout

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4cca8c24b81717d6a113eb9a56b3efe0fd91024c.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 08:36 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/6 "2020-09-18T08:36:37Z")

</div>

You appear to be sending the data in `msg.ui_control`. Looking at the help screen for the ui\_control node it says it should be in msg.payload.

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 09:51 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/7 "2020-09-18T09:51:57Z")

</div>

it's right. I have change to set into msg.payload but it is any change of the state Tab ?? some another idea?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 10:12 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/8 "2020-09-18T10:12:51Z")

</div>

Do you mean it still isn't working?  
Show me what is going into the ui\_control now please.

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 10:44 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/9 "2020-09-18T10:44:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12620dc5c706e160b796b63e5813dfff517c82b4.png)

Here the Debug output:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/6609591774cf43273335faa7147fa8af098ccfb0.png)

I mean that the Tab will be not enable when logging success

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 10:55 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/10 "2020-09-18T10:55:12Z")

</div>

Do you mean that the flow is not sending the enable message when it should or that the enable message doesn't enable the tabs? I am confused because you have shown the rest of the flow rather than just what is going into the ui\_control node.

What OS are you running on?  
Can you restart node-red in a terminal please and post the full log up to the point where it should enable the tabs please. It is the log including the Welcome to node-red message. Use the `</>` button above this window when pasting it in here.

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 11:34 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/11 "2020-09-18T11:34:48Z")

</div>

I mean that the enable message don't enable the tabs.

I run the Node-Red in the Cloud (IBM Cloud), then I can't send you the full log .

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 12:25 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/12 "2020-09-18T12:25:34Z")

</div>

> [@JVergara](#):
>
> run the Node-Red in the Cloud (IBM Cloud), then I can't send you the full log

I don't know whether that is correct or not. However, instead, tell us what version of node red, the dashboard, and nodejs you are using.

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 12:34 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/13 "2020-09-18T12:34:05Z")

</div>

I am using :

- NODE-RED : v1.1.3
- node-red-dashboard : v2.23.2
- nodejs : unknow Version

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 12:41 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/14 "2020-09-18T12:41:14Z")

</div>

> [@JVergara](#):
>
> I mean that the enable message don't enable the tabs.

Do you mean you can disable them but not enable them again?

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 12:44 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/15 "2020-09-18T12:44:14Z")

</div>

Yes I disable the Tab manually in the Layout :  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7c3dd5b86d977d6104a134d5114104d9a30d8edf.png)

but after my flow execution ( with the ui\_control node), don't change it to ENABLE

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 12:51 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/16 "2020-09-18T12:51:22Z")

</div>

It won't change it to Enabled in the editor, but it should enable it in the run time, so you should be able to select it via the menu dropdown in the dashboard. When they are disabled you can't select via the menu.

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 12:59 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/17 "2020-09-18T12:59:19Z")

</div>

yes I can't select it in the dropdown menu by the dashboard. This is the problem ... I want to do in the flow.  
At the beginning is the Tab DISABLE , then if the User was logged succesfully . I will be enable the Tab in the dashboard.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 13:00 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/18 "2020-09-18T13:00:22Z")

</div>

Sorry, I am out of ideas then.

Anybody else got any suggestions?

---

<div class="post-metadata">

**Author:** ![JVergara](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@JVergara](https://discourse.nodered.org/u/JVergara)\
**Post date:** [18 September 2020 13:01 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/19 "2020-09-18T13:01:03Z")

</div>

ok Thanks you so much.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 September 2020 13:32 UTC](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000/20 "2020-09-18T13:32:20Z")

</div>

A couple more thoughts.  
If you start with the tabs enabled are you able to disable them via the flow?

Which browser are you using? Are you able to try another (Firefix, Chrome)?  
If still not joy Open the browser's Developer Console and see if there are any errors shown when you enable/disable.

[Next page](https://discourse.nodered.org/t/disable-ui-tab-of-dashboard/33000.md?page=2)
