From c9e5d3fe56ffddeeecaf1503344951fe86dd36eb Mon Sep 17 00:00:00 2001 From: EricSommerhalder <38506556+EricSommerhalder@users.noreply.github.com> Date: Tue, 20 Jun 2023 11:03:35 +0200 Subject: [PATCH] feat(dsp-app): fixed wrong error-messages in update forms (#1106) --- .../values/decimal-value/decimal-value.component.html | 5 ++++- .../values/geoname-value/geoname-value.component.html | 7 +++++-- .../resource/values/int-value/int-value.component.html | 7 ++++++- .../text-value-as-string.component.html | 5 ++++- .../resource/values/uri-value/uri-value.component.html | 5 ++++- 5 files changed, 23 insertions(+), 6 deletions(-) diff --git a/apps/dsp-app/src/app/workspace/resource/values/decimal-value/decimal-value.component.html b/apps/dsp-app/src/app/workspace/resource/values/decimal-value/decimal-value.component.html index c8a50565a2..f016cec06c 100644 --- a/apps/dsp-app/src/app/workspace/resource/values/decimal-value/decimal-value.component.html +++ b/apps/dsp-app/src/app/workspace/resource/values/decimal-value/decimal-value.component.html @@ -34,9 +34,12 @@ >New value must be a decimal value. - + A decimal value is required. + + Empty values are not supported when updating a value. Consider using the delete button instead. + This value already exists for this property. Duplicate diff --git a/apps/dsp-app/src/app/workspace/resource/values/geoname-value/geoname-value.component.html b/apps/dsp-app/src/app/workspace/resource/values/geoname-value/geoname-value.component.html index 8972203715..361782a363 100644 --- a/apps/dsp-app/src/app/workspace/resource/values/geoname-value/geoname-value.component.html +++ b/apps/dsp-app/src/app/workspace/resource/values/geoname-value/geoname-value.component.html @@ -48,8 +48,11 @@ >New value must be different than the current value. - - A GeoName value is required. + + A GeoName value is required {{mode}}. + + + Empty values are not supported when updating a value. Consider using the delete button instead. New value must be an integer. - + An integer value is required. + + Empty values are not supported when updating a value. Consider using the delete button instead. + This value already exists for this property. Duplicate diff --git a/apps/dsp-app/src/app/workspace/resource/values/text-value/text-value-as-string/text-value-as-string.component.html b/apps/dsp-app/src/app/workspace/resource/values/text-value/text-value-as-string/text-value-as-string.component.html index 7143cb1d02..7f34bfdbfd 100644 --- a/apps/dsp-app/src/app/workspace/resource/values/text-value/text-value-as-string/text-value-as-string.component.html +++ b/apps/dsp-app/src/app/workspace/resource/values/text-value/text-value-as-string/text-value-as-string.component.html @@ -44,9 +44,12 @@ >New value must be different than the current value. - + A text value is required. + + Empty values are not supported when updating a value. Consider using the delete button instead. + This value already exists for this property. Duplicate diff --git a/apps/dsp-app/src/app/workspace/resource/values/uri-value/uri-value.component.html b/apps/dsp-app/src/app/workspace/resource/values/uri-value/uri-value.component.html index 07c07bdd2f..b2bd5675dd 100644 --- a/apps/dsp-app/src/app/workspace/resource/values/uri-value/uri-value.component.html +++ b/apps/dsp-app/src/app/workspace/resource/values/uri-value/uri-value.component.html @@ -41,9 +41,12 @@ >New value must be a valid URI. - + A URI value is required. + + Empty values are not supported when updating a value. Consider using the delete button instead. + This value already exists for this property. Duplicate