MultiUrlPicker: displays draft nodes as greyed out

This commit is contained in:
leekelleher
2024-05-24 19:59:58 +01:00
parent 2a5ca6e31d
commit 6a55df53dd
2 changed files with 5 additions and 4 deletions

View File

@@ -273,7 +273,8 @@ export class UmbMultiUrlPickerElement extends UUIFormControlMixin(UmbLitElement,
id=${unique}
href=${href}
name=${link.name || ''}
detail=${(link.url || '') + (link.queryString || '')}>
detail=${(link.url || '') + (link.queryString || '')}
?disabled=${!link.published}>
<umb-icon slot="icon" name=${link.icon || 'icon-link'}></umb-icon>
<uui-action-bar slot="actions">
<uui-button href=${href} label=${this.localize.term('general_edit')}></uui-button>

View File

@@ -22,9 +22,9 @@ export class UmbPropertyEditorUIMultiUrlPickerElement extends UmbLitElement impl
public set config(config: UmbPropertyEditorConfigCollection | undefined) {
if (!config) return;
this._hideAnchor = config.getValueByAlias('hideAnchor') ?? false;
this._minNumber = Number(config.getValueByAlias('minNumber')) ?? 0;
this._maxNumber = Number(config.getValueByAlias('maxNumber')) ?? Infinity;
this._hideAnchor = Boolean(config.getValueByAlias('hideAnchor')) ?? false;
this._minNumber = Number(config.getValueByAlias('minNumber')) || 0;
this._maxNumber = Number(config.getValueByAlias('maxNumber')) || Infinity;
this._overlaySize = config.getValueByAlias<UUIModalSidebarSize>('overlaySize') ?? 'small';
}