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

Commit

Permalink
Add type accelerator for DashboardColor
Browse files Browse the repository at this point in the history
So [DashboardColor] can be used directly instead of referencing [UniversalDashboard.Models.DashboardColor]
  • Loading branch information
itfranck authored Jun 24, 2019
1 parent 3474a45 commit 3a1eb64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/UniversalDashboard/UniversalDashboard.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ Import-Module (Join-Path $PSScriptRoot "UniversalDashboardServer.psm1")
Import-Module (Join-Path $PSScriptRoot "UniversalDashboard.Controls.psm1")
Import-Module (Join-Path $PSScriptRoot "Modules\UniversalDashboard.Materialize\UniversalDashboard.Materialize.psd1")
Import-Module (Join-Path $PSScriptRoot "Modules\UniversalDashboard.MaterialUI\UniversalDashboard.MaterialUI.psd1")

$TAType = [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")
$TAtype::Add("DashboardColor", "UniversalDashboard.Models.DashboardColor")

0 comments on commit 3a1eb64

Please sign in to comment.