Hello,
I've an issue with a custom button showing a value received from the msg.value.
I created a very basic flow to show the problem. I created 2 buttons, on the left hand side using the button node and on the right hand side using the template node. The button text contains the time from {{msg.payload.text}}.
Now when pressing the buttons it looks like this:
For the button using the template node, the button text disapeared. The button node for sure works fine.
When injecting a new msg.payload.text to the button, it is showed again.
The question is, what can I do to prevent the message text to disapear when pressing the button?
The reason for using the template node is, I want to style a more fancy button, which is not possible with the button node, but this is not relevant for this problem.
Sample flow:
[{"id":"db7339fe1d38e71f","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"237208b4d90b3f5e","type":"ui_button","z":"db7339fe1d38e71f","name":"Button Node ","group":"554b035586d8f0a6","order":3,"width":3,"height":1,"passthru":false,"label":"{{msg.payload.text}}","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"close","payloadType":"str","topic":"topic","topicType":"msg","x":590,"y":240,"wires":[["ee91989ae801d683"]]},{"id":"7e0e22cfaa0e385f","type":"ui_template","z":"db7339fe1d38e71f","group":"554b035586d8f0a6","name":"Template Node","order":4,"width":3,"height":1,"format":"<md-button ng-click=\"send({payload: 'close'})\" style=\"height: 100%\">\n {{msg.payload.text}}\n</md-button>\n","storeOutMessages":true,"fwdInMessages":false,"resendOnRefresh":false,"templateScope":"local","className":"","x":600,"y":120,"wires":[["99547ec1699401cb"]],"outputLabels":["out"]},{"id":"ca14e098ce7425d6","type":"inject","z":"db7339fe1d38e71f","name":"","props":[{"p":"payload.text","v":"19:27","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","x":310,"y":180,"wires":[["7e0e22cfaa0e385f","237208b4d90b3f5e"]]},{"id":"b9545b67dcdc1c70","type":"ui_text","z":"db7339fe1d38e71f","group":"554b035586d8f0a6","order":1,"width":3,"height":1,"name":"","label":"Button Node","format":"","layout":"row-spread","className":"","style":false,"font":"","fontSize":16,"color":"#000000","x":590,"y":80,"wires":[]},{"id":"97c2b2e006a2ce34","type":"ui_text","z":"db7339fe1d38e71f","group":"554b035586d8f0a6","order":2,"width":3,"height":1,"name":"","label":"Template Node","format":"","layout":"row-spread","className":"","style":false,"font":"","fontSize":16,"color":"#000000","x":600,"y":200,"wires":[]},{"id":"99547ec1699401cb","type":"debug","z":"db7339fe1d38e71f","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":120,"wires":[]},{"id":"ee91989ae801d683","type":"debug","z":"db7339fe1d38e71f","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":240,"wires":[]},{"id":"554b035586d8f0a6","type":"ui_group","name":"Default","tab":"55de4a8bef2cedc5","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"55de4a8bef2cedc5","type":"ui_tab","name":"Buttontest","icon":"dashboard","disabled":false,"hidden":false}]