Skip to content

Commit

Permalink
Fixes #1364 (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll authored Dec 11, 2019
1 parent ca774ef commit 76681d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/UniversalDashboard/Controllers/ComponentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, object> variables)
Expand Down
6 changes: 3 additions & 3 deletions src/UniversalDashboard/Help/Invoke-UDEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ 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.

## SYNTAX

```
Invoke-UDElement -id <String> -event <string> [<CommonParameters>]
Invoke-UDEvent -id <String> -event <string> [<CommonParameters>]
```


Expand All @@ -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.
Expand Down

0 comments on commit 76681d0

Please sign in to comment.