Skip to content
Snippets Groups Projects
Commit fee24394 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Add support for update handling of lang and entry-point-url attributes

parent fc8ae83a
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,16 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement { ...@@ -74,8 +74,16 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement {
updated(changedProperties) { updated(changedProperties) {
changedProperties.forEach((oldValue, propName) => { changedProperties.forEach((oldValue, propName) => {
if (propName === "value") { if (propName === "lang") {
this.loadWebPageElement(); i18n.changeLanguage(this.lang);
}
switch(propName) {
case "lang":
case "value":
case "entry-point-url":
this.loadWebPageElement();
break;
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment