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