3.1.8
This commit is contained in:
@@ -20,7 +20,7 @@ $global:documentationProviders = @()
|
||||
|
||||
function Get-ModuleVersion
|
||||
{
|
||||
'1.0.4'
|
||||
'1.0.5'
|
||||
}
|
||||
|
||||
function Invoke-InitializeModule
|
||||
@@ -57,6 +57,16 @@ function Invoke-ShowMainWindow
|
||||
$global:spSubMenu.Children.Insert(0, $button)
|
||||
}
|
||||
|
||||
function Invoke-GraphObjectsChanged
|
||||
{
|
||||
$btnDocument = $global:spSubMenu.Children | Where-Object { $_.Name -eq "btnDocument" }
|
||||
$btnExport = $global:spSubMenu.Children | Where-Object { $_.Name -eq "btnExport" }
|
||||
if($btnDocument -and $btnExport)
|
||||
{
|
||||
$btnDocument.Visibility = $btnExport.Visibility
|
||||
}
|
||||
}
|
||||
|
||||
function Invoke-ViewActivated
|
||||
{
|
||||
if($global:currentViewObject.ViewInfo.ID -ne "IntuneGraphAPI") { return }
|
||||
@@ -2889,7 +2899,22 @@ function Invoke-TranslateAssignments
|
||||
{
|
||||
if(($assignment.settings.PSObject.Properties | Where Name -eq $settingProp))
|
||||
{
|
||||
$assignmentSettingProps.Add($settingProp, $assignment.settings.$settingProp)
|
||||
if($settingProp -eq "useDeviceLicensing")
|
||||
{
|
||||
if($assignment.settings.$settingProp -eq $true)
|
||||
{
|
||||
$value = Get-LanguageString "SettingDetails.licenseTypeDevice"
|
||||
}
|
||||
else
|
||||
{
|
||||
$value = Get-LanguageString "SettingDetails.licenseTypeUser"
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$value = $assignment.settings.$settingProp
|
||||
}
|
||||
$assignmentSettingProps.Add($settingProp, $value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user