From 872d7efbc420a7c85d748ddbbcbb84337eb66ebf Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:19:52 +0100 Subject: [PATCH] content picker --- .../schemas}/Umbraco.ContentPicker.ts | 2 +- .../core/property-editor/schemas/manifests.ts | 2 ++ .../property-editors/document-picker/manifests.ts | 12 ------------ .../documents/property-editors/manifests.ts | 3 +-- 4 files changed, 4 insertions(+), 15 deletions(-) rename src/Umbraco.Web.UI.Client/src/packages/{documents/documents/property-editors => core/property-editor/schemas}/Umbraco.ContentPicker.ts (86%) diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/Umbraco.ContentPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ContentPicker.ts similarity index 86% rename from src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/Umbraco.ContentPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ContentPicker.ts index bdd3e10e93..5f917b3024 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/Umbraco.ContentPicker.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ContentPicker.ts @@ -5,7 +5,7 @@ export const manifest: ManifestPropertyEditorSchema = { name: 'Content Picker', alias: 'Umbraco.ContentPicker', meta: { - defaultPropertyEditorUiAlias: 'Umb.PropertyEditorUi.ContentPicker', + defaultPropertyEditorUiAlias: 'Umb.PropertyEditorUi.DocumentPicker', settings: { properties: [ { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts index 83ff17871a..5661955fbd 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts @@ -2,6 +2,7 @@ import { manifest as blockGrid } from './Umbraco.BlockGrid.js'; import { manifest as blockList } from './Umbraco.BlockList.js'; import { manifest as checkboxList } from './Umbraco.CheckboxList.js'; import { manifest as colorPicker } from './Umbraco.ColorPicker.js'; +import { manifest as contentPicker } from './Umbraco.ContentPicker.js'; import { manifest as dateTime } from './Umbraco.DateTime.js'; import { manifest as decimal } from './Umbraco.Decimal.js'; import { manifest as dropdownFlexible } from './Umbraco.Dropdown.Flexible.js'; @@ -36,6 +37,7 @@ export const manifests: Array = [ blockList, checkboxList, colorPicker, + contentPicker, dateTime, decimal, dropdownFlexible, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/manifests.ts index fc2041a32b..f74b9df301 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/manifests.ts @@ -18,18 +18,6 @@ export const manifest: ManifestPropertyEditorUi = { description: 'Opens the node in a dialog', propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle', }, - { - alias: 'validationLimit', - label: 'Amount of Documents', - description: 'Require a certain amount of documents', - propertyEditorUiAlias: 'Umb.PropertyEditorUi.NumberRange', - }, - { - alias: 'ignoreUserStartNodes', - label: 'Ignore User Start Nodes', - description: 'Selecting this option allows a user to choose nodes that they normally dont have access to', - propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle', - }, ], }, }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/manifests.ts index a9f08b9971..e4a64ccb34 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/manifests.ts @@ -1,5 +1,4 @@ import { manifest as documentPickerUI } from './document-picker/manifests.js'; -import { manifest as contentPicker } from './Umbraco.ContentPicker.js'; import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; -export const manifests: Array = [documentPickerUI, contentPicker]; +export const manifests: Array = [documentPickerUI];