From fb8cf4c4f16f278119cb7038b6ab3eb1ea206cf9 Mon Sep 17 00:00:00 2001
From: JesmoDev <26099018+JesmoDev@users.noreply.github.com>
Date: Tue, 14 May 2024 18:03:18 +0200
Subject: [PATCH 1/3] autofill alias from label
---
...or-ui-image-crops-configuration.element.ts | 29 ++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts
index bbccbeac1f..87f87c3d95 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/property-editors/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts
@@ -26,6 +26,8 @@ export class UmbPropertyEditorUIImageCropsConfigurationElement
@state()
editCropAlias = '';
+ #oldInputValue = '';
+
#onRemove(alias: string) {
this.value = [...this.value.filter((item) => item.alias !== alias)];
this.dispatchEvent(new UmbPropertyValueChangeEvent());
@@ -101,6 +103,24 @@ export class UmbPropertyEditorUIImageCropsConfigurationElement
: html`