Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #938 from ironmansoftware/934-2
Browse files Browse the repository at this point in the history
Fixes #935 #934
  • Loading branch information
adamdriscoll authored Jul 3, 2019
2 parents 3a1c724 + 8f7952e commit 7ae6a93
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/UniversalDashboard.Materialize/Components/ud-fab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ export default class UDFab extends React.Component {
icon = <UdIcon icon={this.props.icon}/>
}

var children = this.props.content.map(x => <UDFabButton {...x} />);

var content = this.props.content;

if (!Array.isArray(content)) {
content = [content]
}

var children = content.map(x => <UDFabButton {...x} />);

return <Button
floating
fab={{direction: this.props.expandDirection}}
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.UITest/Manifest.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Get-UDDashboard | Stop-UDDashboard
Describe "Manifest" {

It "should have correct version" {
(Get-Module 'UniversalDashboard.Community').Version | Should be "2.5.1"
(Get-Module 'UniversalDashboard.Community').Version | Should be "2.5.2"
}

It "should have correct exported commands" {
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/New-UDModuleManifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ param(

Remove-Item (Join-Path $outputDirectory 'UniversalDashboard.Community.psd1') -ErrorAction SilentlyContinue -Force

$version = "2.5.1"
$version = "2.5.2"
#$prerelease = "-beta2"

$ReleaseNotes = "
Expand Down
4 changes: 4 additions & 0 deletions src/UniversalDashboard/Server/DashboardHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using UniversalDashboard.Services;
using System.Text;
using UniversalDashboard.Models.Enums;
using Microsoft.CSharp.RuntimeBinder;

namespace UniversalDashboard
{
Expand Down Expand Up @@ -242,6 +243,9 @@ public Task ClientEvent(string eventId, string eventName, string eventData, stri
Clients.Client(Context.ConnectionId).SendAsync("showError", new { message = error.Message });
}

}
catch (RuntimeBinderException) {

}
catch (Exception ex)
{
Expand Down
2 changes: 1 addition & 1 deletion src/poshud/utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function New-UDComponentPage {
$Command
)

New-UDPage -Name $Command -Endpoint {
New-UDPage -Name $Command -Content {

$Help = Get-Help $Command -Full
$OnlineVersion = $Help.relatedLinks.navigationLink | Where-Object linkText -eq 'Online Version:' | Select-Object -ExpandProperty uri
Expand Down

0 comments on commit 7ae6a93

Please sign in to comment.