This article describes how to configure the StoreFront to ignore clicks on “Restart” while desktop is powering off and while it is powering on again.
When the user’s desktop is restarting, there might be issues if they repeatedly click on the desktop.
Backup the file c:\inetpub\wwwroot\Citrix\StoreWeb\contrib\custom.script.js.
Open the file c:\inetpub\wwwroot\Citrix\StoreWeb\contrib\custom.script.js.
Add the following text into the custom.script.js file and save the file:
CTXS.origPromptForRestartDesktop = CTXS.promptForRestartDesktop; CTXS.promptForRestartDesktop = function (desktop) { var $desktopElement = $('#resources-mydesktops').find('.resource[index="' + desktop.index + '"]'); if (!$desktopElement.hasClass('poweroff-waiting')&& !$desktopElement.hasClass('launch-waiting')) { CTXS.origPromptForRestartDesktop(desktop); } };