In my flow, the "Manual Startup" inject node is only if I want to start the flow manually. It doesn't do anything otherwise. The ui_control node is the one that actually starts the flow when the user starts the dashboard ui. Hope that helps
The flow shown above also does a refresh when the user changes tabs. Here is the flow:
[{"id":"c319afa4.557968","type":"group","z":"c1b9d37f.b6443","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["14ce4cc6.d66e1b","130b08c0.946dff","a0cd749f.8635c8","ab9a436b.1dbad8","7ac12a79.c2e98c","3f58c8f3.cdbed","dd4ec3f6.31e2a","cb47b44.cab4c48"],"x":92.33334350585938,"y":92.6666488647461,"w":1027.6665344238281,"h":210.33335876464844},{"id":"14ce4cc6.d66e1b","type":"ui_ui_control","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Startup","events":"connect","x":422.6666564941406,"y":190.66663551330566,"wires":[["3f58c8f3.cdbed"]]},{"id":"130b08c0.946dff","type":"link out","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Dashboard Startup - Out","links":["2b3b452f.1dac22","411c1b85.f50ec4","480b0328.37263c","4ef418da.8ab538","c07805cd.355d4","c41552b6.8571a","c64a8499.028398","d294caea.d30598","f72fda03.2de5e8","95c28f77.44567","57d384c3.4321e4","11d3a079.a43b28","a7c22f20.f7faa","df3da41b.01b6c","17be7d99.8c0312","acfe7184.9dee58","a38b5895.f8c6a8","ae0a9fb7.a3c5c8"],"x":884.3332214355469,"y":139.66661834716797,"wires":[],"l":true},{"id":"a0cd749f.8635c8","type":"comment","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Change log","info":"2021-03-24: Created to replace individual statup ui_control nodes for each tab\n2021-04-17: Added logic to refresh current tab on \"change\" tab event, pull data only on \"connect\" event.","x":211.33334350585938,"y":262.00000762939453,"wires":[]},{"id":"ab9a436b.1dbad8","type":"inject","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Manual Startup","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":222.33334350585938,"y":191.00000953674316,"wires":[["14ce4cc6.d66e1b"]]},{"id":"7ac12a79.c2e98c","type":"comment","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Dashboard Startup","info":"","x":208.33334350585938,"y":133.6666488647461,"wires":[]},{"id":"3f58c8f3.cdbed","type":"switch","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Connect or Change","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"connect","vt":"str"},{"t":"eq","v":"change","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":631.3333892822266,"y":191.00001525878906,"wires":[["130b08c0.946dff"],["dd4ec3f6.31e2a"]]},{"id":"dd4ec3f6.31e2a","type":"change","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Refresh Tab","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":841,"y":236.66665649414062,"wires":[["cb47b44.cab4c48"]]},{"id":"cb47b44.cab4c48","type":"ui_ui_control","z":"c1b9d37f.b6443","g":"c319afa4.557968","name":"Refresh tab","events":"change","x":1023.9998779296875,"y":237.00015258789062,"wires":[[]]}]