Fix broken comparison when editing the template description

This was always comparing with the English description. The effect of
this was that the comparison was always false and the value always
set, even if it didn't change, resulting in unnecessary events being
fired. So this is only about performance but not really user facing.

Change-Id: Id7a46dbac81e2595478848bbf325eece21815bec
This commit is contained in:
Thiemo Kreuz 2022-09-23 10:25:09 +02:00
parent f79db7eddd
commit 17d6c485bb

View file

@ -500,7 +500,7 @@ Dialog.prototype.onDescriptionInputChange = function ( value ) {
}
this.descriptionChanged = true;
if ( this.model.getTemplateDescription() !== value ) {
if ( this.model.getTemplateDescription( this.language ) !== value ) {
this.model.setTemplateDescription( value, this.language );
}
};