Transformation edit: Remove i18n string from Item state transform hint (#1883)

Follow-up for #1845.

The i18n identifier should not be part of the hint "How to use this
transformation for Item states".

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
pull/1892/head
Florian Hotze 2023-05-09 20:51:14 +02:00 committed by GitHub
parent 89d0403d80
commit 60221ab0b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default {
return false
},
itemStateTransformationCode () {
return `${this.transformation.type.toUpperCase()}(${this.transformationId})`
return `${this.transformation.type.toUpperCase()}(${this.transformationId.replace(/:([A-Z][a-z]{1,2}-)?([a-z]{2,3})(-[A-Z]{2,3})?$/, '')})`
}
},
methods: {