Support template variables in command menu item labels (#18707)
- Adds template variable interpolation (`${...}`) to command menu item
labels and short labels, enabling dynamic text like `Create new
${capitalize(objectMetadataItem.labelSingular)}` instead of static
`Create new record`.
- Supports `capitalize` and `lowercase` transform functions within
template expressions.
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ export const fromCommandMenuItemManifestToUniversalFlatCommandMenuItem = ({
|
||||
universalIdentifier: commandMenuItemManifest.universalIdentifier,
|
||||
applicationUniversalIdentifier,
|
||||
label: commandMenuItemManifest.label,
|
||||
shortLabel: null,
|
||||
shortLabel: commandMenuItemManifest.shortLabel ?? null,
|
||||
position: 0,
|
||||
icon: commandMenuItemManifest.icon ?? null,
|
||||
isPinned: commandMenuItemManifest.isPinned ?? false,
|
||||
|
||||
Reference in New Issue
Block a user