LinkPicker modal, removes overlaySize config

This commit is contained in:
leekelleher
2024-04-23 18:47:51 +01:00
committed by Jacob Overgaard
parent 719db24a7b
commit 190825902b
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
import { UmbModalToken } from './modal-token.js';
import type { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui';
export interface UmbLinkPickerModalData {
config: UmbLinkPickerConfig;
@@ -26,7 +25,6 @@ export type UmbLinkPickerLinkType = 'document' | 'external' | 'media';
export interface UmbLinkPickerConfig {
hideAnchor?: boolean;
ignoreUserStartNodes?: boolean;
overlaySize?: UUIModalSidebarSize;
}
export const UMB_LINK_PICKER_MODAL = new UmbModalToken<UmbLinkPickerModalData, UmbLinkPickerModalValue>(

View File

@@ -184,9 +184,10 @@ export class UmbInputMarkdownElement extends UUIFormControlMixin(UmbLitElement,
this._focusEditor(); // Focus before opening modal
const modalContext = this._modalContext.open(this, UMB_LINK_PICKER_MODAL, {
modal: { size: this.overlaySize },
data: {
index: null,
config: { overlaySize: this.overlaySize },
config: {},
},
value: {
link: { name: selectedValue },