dont show label for block type
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user