Ändere den Standort des CommandSets in Enable-ExpiryIndicator.ps1 auf 'ClientSideExtension.ListViewCommandSet.CommandBar' und passe Test-ExpiryIndicatorRegistration.ps1 an, um die neue Location zu berücksichtigen.
This commit is contained in:
@@ -49,9 +49,7 @@ try {
|
|||||||
|
|
||||||
$commandAction.Name = 'ExpiryIndicator.CommandSet'
|
$commandAction.Name = 'ExpiryIndicator.CommandSet'
|
||||||
$commandAction.Title = 'ExpiryIndicator commands'
|
$commandAction.Title = 'ExpiryIndicator commands'
|
||||||
# SPUserCustomAction uses the classic location value; SharePoint maps it to
|
$commandAction.Location = 'ClientSideExtension.ListViewCommandSet.CommandBar'
|
||||||
# the SPFx command bar and item context menu when ClientSideComponentId is set.
|
|
||||||
$commandAction.Location = 'CommandUI.Ribbon'
|
|
||||||
$commandAction.ClientSideComponentId = $CommandSetComponentId
|
$commandAction.ClientSideComponentId = $CommandSetComponentId
|
||||||
$commandAction.ClientSideComponentProperties = '{}'
|
$commandAction.ClientSideComponentProperties = '{}'
|
||||||
$commandAction.Update()
|
$commandAction.Update()
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ try {
|
|||||||
Write-Host 'List User Custom Actions:'
|
Write-Host 'List User Custom Actions:'
|
||||||
|
|
||||||
$actions = @($customActions | Where-Object {
|
$actions = @($customActions | Where-Object {
|
||||||
$_.Location -eq 'CommandUI.Ribbon' -or
|
|
||||||
$_.Location -like 'ClientSideExtension.ListViewCommandSet*' -or
|
$_.Location -like 'ClientSideExtension.ListViewCommandSet*' -or
|
||||||
$_.Name -like 'ExpiryIndicator*'
|
$_.Name -like 'ExpiryIndicator*'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user