From 3a1eb64382c239eb6fc4dcfa4777a71548feaca4 Mon Sep 17 00:00:00 2001 From: Francis Mercier <Francis@nzt.ca> Date: Mon, 24 Jun 2019 12:22:53 -0400 Subject: [PATCH] Add type accelerator for DashboardColor So [DashboardColor] can be used directly instead of referencing [UniversalDashboard.Models.DashboardColor] --- src/UniversalDashboard/UniversalDashboard.psm1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UniversalDashboard/UniversalDashboard.psm1 b/src/UniversalDashboard/UniversalDashboard.psm1 index 548bfd47..c0f0e3ff 100644 --- a/src/UniversalDashboard/UniversalDashboard.psm1 +++ b/src/UniversalDashboard/UniversalDashboard.psm1 @@ -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")