From 76681d0c96cf4ca016b723d11f49813a489b58e4 Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Wed, 11 Dec 2019 04:42:06 -0700 Subject: [PATCH] Fixes #1364 (#1367) --- src/UniversalDashboard/Controllers/ComponentController.cs | 2 +- src/UniversalDashboard/Help/Invoke-UDEvent.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UniversalDashboard/Controllers/ComponentController.cs b/src/UniversalDashboard/Controllers/ComponentController.cs index d74c547f..ca55bd69 100644 --- a/src/UniversalDashboard/Controllers/ComponentController.cs +++ b/src/UniversalDashboard/Controllers/ComponentController.cs @@ -543,7 +543,7 @@ public IActionResult SetElementSessionState([FromRoute]string requestId, [FromBo var element = (Element)jobject.ToObject(typeof(Element)); _stateRequestService.Set(requestId, element); - return Ok(); + return Json(new { message = "Session state set" }); } private void SetQueryStringValues(Dictionary variables) diff --git a/src/UniversalDashboard/Help/Invoke-UDEvent.md b/src/UniversalDashboard/Help/Invoke-UDEvent.md index ed4db28d..639d7825 100644 --- a/src/UniversalDashboard/Help/Invoke-UDEvent.md +++ b/src/UniversalDashboard/Help/Invoke-UDEvent.md @@ -5,7 +5,7 @@ online version: https://go.microsoft.com/fwlink/?LinkID=217032 schema: 2.0.0 --- -# Invoke-UDElement +# Invoke-UDEvent ## SYNOPSIS Performs a clientside "click" event on the specified id, if the element is clickable. @@ -13,7 +13,7 @@ Performs a clientside "click" event on the specified id, if the element is click ## SYNTAX ``` -Invoke-UDElement -id -event [] +Invoke-UDEvent -id -event [] ``` @@ -24,7 +24,7 @@ Performs a clientside "click" event on the specified id, if the element is click ### Example 1 ``` -PS C:\> Invoke-UDElement -id "someid" -event "onClick" +PS C:\> Invoke-UDEvent -id "someid" -event "onClick" ``` Performs a clientside "click" event on the specified id, if the element is clickable.