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

View File

@@ -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()