# Ui-group - type dialog. how to 'prevent' closing the window

**URL:** <https://discourse.nodered.org/t/ui-group-type-dialog-how-to-prevent-closing-the-window/95896>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [10 March 2025 04:19 UTC](https://discourse.nodered.org/t/ui-group-type-dialog-how-to-prevent-closing-the-window/95896 "2025-03-10T04:19:59Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [30 March 2025 02:46 UTC](https://discourse.nodered.org/t/ui-group-type-dialog-how-to-prevent-closing-the-window/95896/14 "2025-03-30T02:46:40Z")

</div>

Am really struggling in the UI when user is losing patience and starts clicking further loading the server. need a quickfix to stop user interaction so that till the flow is 'ready' not allow any user interaction.

this was perfect for me. (for db1)

> [@\[Announce\] node-red-contrib-ui-spinner](https://discourse.nodered.org/t/announce-node-red-contrib-ui-spinner/78747):
>
> Hello, I would like to announce a new dashboard widget node [node-red-contrib-ui-spinner](https://github.com/HiroyasuNishiyama/node-red-contrib-ui-spinner). This node can be used to display an animated marker while performing time-consuming processing. It is implemented using [SpinKit](https://github.com/tobiasahlin/SpinKit) and supports various spinner types. [demo1] [demo2]

I am trying to use a flow context and switch node to restrict user inputs, but there are too many places where i have to monitor this input.

---

_[View the full topic](https://discourse.nodered.org/t/ui-group-type-dialog-how-to-prevent-closing-the-window/95896)._
