Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:cisco:wxcc:widgets [2026/02/25 16:57] – [Change RONA V2] gerardorourke | vendors:cisco:wxcc:widgets [2026/02/26 11:19] (current) – gerardorourke | ||
|---|---|---|---|
| Line 155: | Line 155: | ||
| } | } | ||
| </ | </ | ||
| - | * The original version attempted to make the agent available after the delaySeconds timer expires - no matter what. i.e. Even if in the mean time, the agent have moved from RONA and back into Idle with manual code. This is not what users would want. This is now prevented by checking, just before moving the agent into available, that the current state is indeed still Idle RONA. | + | |
| - | Only if its Idle due to RONA will it attempt move the agent back to an Available state. | + | |
| * Note - As the user logs in the widget the widget loads, it then pauses for 15 seconds before loading the rest of the code. If the agent has NOT completed login by this time (i.e. if the user does not complete login by confirming their team / extension), the events to catch the RONA events do not trigger and the gadget does not work as intended. | * Note - As the user logs in the widget the widget loads, it then pauses for 15 seconds before loading the rest of the code. If the agent has NOT completed login by this time (i.e. if the user does not complete login by confirming their team / extension), the events to catch the RONA events do not trigger and the gadget does not work as intended. | ||
| - | **Package: | + | **Package: |
| *download above and to run locally (http:// | *download above and to run locally (http:// | ||
| *npm install | *npm install | ||
| Line 167: | Line 167: | ||
| <file JavaScript change-rona.js> | <file JavaScript change-rona.js> | ||
| + | /* | ||
| /* | /* | ||
| Update on Sample Gadget provided by Aashish Berry (aaberry) - https:// | Update on Sample Gadget provided by Aashish Berry (aaberry) - https:// | ||
| Line 209: | Line 210: | ||
| if (this.delaySeconds) { | if (this.delaySeconds) { | ||
| - | logger.info(' | + | logger.info(' |
| this.delaySeconds = this.delaySeconds * 1000; | this.delaySeconds = this.delaySeconds * 1000; | ||
| } | } | ||