media collection action

This commit is contained in:
JesmoDev
2024-05-20 16:54:34 +02:00
parent aca5112583
commit 40fd14bfb0
2 changed files with 5 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ export class UmbCreateMediaCollectionActionElement extends UmbLitElement {
? `${this._createMediaPath}create/${this._mediaUnique ?? 'null'}/${mediaType.unique}`
: `section/media/workspace/media/create/parent/${mediaEntityType}/${this._mediaUnique ?? 'null'}/${
mediaType.unique
}`;
}`;
}
render() {
@@ -109,7 +109,9 @@ export class UmbCreateMediaCollectionActionElement extends UmbLitElement {
#renderDropdown() {
if (!this._allowedMediaTypes.length) return;
const label = this.manifest?.meta.label ?? this.localize.term('general_create');
const label = this.manifest?.meta.label
? this.localize.string(this.manifest.meta.label)
: this.manifest?.name ?? '';
return html`
<uui-button popovertarget="collection-action-menu-popover" label=${label} color="default" look="outline">

View File

@@ -9,7 +9,7 @@ export const createManifest: ManifestCollectionAction = {
element: () => import('./create-media-collection-action.element.js'),
weight: 100,
meta: {
label: 'Create',
label: '#general_create',
},
conditions: [
{