Ä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:
Torsten Brendgen
2026-07-16 23:45:59 +02:00
parent 7f893ea506
commit f574a749d1
2 changed files with 1 additions and 4 deletions

View File

@@ -49,9 +49,7 @@ try {
$commandAction.Name = 'ExpiryIndicator.CommandSet'
$commandAction.Title = 'ExpiryIndicator commands'
# 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.Location = 'ClientSideExtension.ListViewCommandSet.CommandBar'
$commandAction.ClientSideComponentId = $CommandSetComponentId
$commandAction.ClientSideComponentProperties = '{}'
$commandAction.Update()

View File

@@ -33,7 +33,6 @@ try {
Write-Host 'List User Custom Actions:'
$actions = @($customActions | Where-Object {
$_.Location -eq 'CommandUI.Ribbon' -or
$_.Location -like 'ClientSideExtension.ListViewCommandSet*' -or
$_.Name -like 'ExpiryIndicator*'
})