dont show label for block type

This commit is contained in:
Niels Lyngsø
2024-05-01 12:51:03 +02:00
parent a8883add16
commit b177c9d98e
2 changed files with 2 additions and 6 deletions

View File

@@ -18,9 +18,6 @@ export class UmbBlockTypeCardElement extends UmbLitElement {
@property({ type: String, attribute: false })
href?: string;
@property({ type: String, attribute: false })
name?: string;
@property({ type: String, attribute: false })
iconColor?: string;
@@ -66,7 +63,7 @@ export class UmbBlockTypeCardElement extends UmbLitElement {
return html`
<uui-card-block-type
href=${ifDefined(this.href)}
.name=${this.name ?? this._fallbackName ?? ''}
.name=${this._fallbackName ?? 'Unknown'}
.background=${this.backgroundColor}>
<umb-icon name=${this._fallbackIcon ?? ''} style="color:${this.iconColor}"></umb-icon>
<slot name="actions" slot="actions"> </slot>

View File

@@ -115,7 +115,7 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<
label=${this.localize.term('general_search')}
placeholder=${this.localize.term('placeholders_search')}>
<uui-icon name="icon-search" slot="prepend"></uui-icon>
</uui-input>`
</uui-input>`
: nothing}
${this._filtered.map(
(group) => html`
@@ -126,7 +126,6 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<
(block) => block.contentElementTypeKey,
(block) => html`
<umb-block-type-card
.name=${block.label}
.iconColor=${block.iconColor}
.backgroundColor=${block.backgroundColor}
.contentElementTypeKey=${block.contentElementTypeKey}