Ä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()
|
||||
|
||||
Reference in New Issue
Block a user