# Dashboard button not refreshed

**URL:** https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997
**Category:** Dashboard
**Created:** [4 December 2020 12:29 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997 "2020-12-04T12:29:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![martyouel](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@martyouel](https://discourse.nodered.org/u/martyouel)
#### Post date: [4 December 2020 12:29 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997/1 "2020-12-04T12:29:02Z")

</div>

Hi,  
Based on some research here I built a flow to manage my icon of a button for my light.

My flow start with a node that listen to the current state of my light.  
If state is OFF I send this icon :

> node.send({ui\_control:{"icon":"iconify-emojione-monotone:light-bulb 8em"}});

If state is ON I send this icon :

> node.send({ui\_control:{"icon":"iconify-emojione:light-bulb 8em"}});

And the end of my flow is a node to toggle the light.

My concern is that after a state changed of my light the icon is not updated. Well in fact, the icon is updated but the dashboard do not refresh. If I force a full refresh of the page in the browser I can then see the new icon.  
Is there a way to get the button refreshed ?

thanks

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [4 December 2020 13:07 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997/2 "2020-12-04T13:07:23Z")

</div>

It is actually known that iconify icons can't be changed on fly.  
First reported for ui\_switch node, where it was showing the icon only for one state.  
But for any widget, the iconify icons can't be changed dynamically (via msg.ui\_control ).  
Takes some time to fix ..

---

<div class="post-metadata">

### Author: ![martyouel](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@martyouel](https://discourse.nodered.org/u/martyouel)
#### Post date: [4 December 2020 13:17 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997/3 "2020-12-04T13:17:11Z")

</div>

Damn 😑  
thanks for your answer.  
Using iconify is the only way I wanna go to build the dashboard I want for my main wallpanel tablet.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [4 December 2020 14:50 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997/4 "2020-12-04T14:50:31Z")

</div>

Looking at potential fix for this now... fingers crossed.

---

<div class="post-metadata">

### Author: ![martyouel](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@martyouel](https://discourse.nodered.org/u/martyouel)
#### Post date: [4 December 2020 18:13 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997/5 "2020-12-04T18:13:08Z")

</div>

Cool, thanks your answer !

---

<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: [3 January 2021 18:13 UTC](https://discourse.nodered.org/t/dashboard-button-not-refreshed/36997/6 "2021-01-03T18:13:10Z")

</div>

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