MultiUrlPicker: displays draft nodes as greyed out
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user