BigW Consortium Gitlab

Commit 1098020d by Phil Hughes

Correctly set title_text with API data

parent b54faeb9
......@@ -84,7 +84,7 @@ export default {
},
elementsToVisualize(noTitleChange, noDescriptionChange) {
if (!noTitleChange) {
this.titleText = this.apiData.title_text;
this.setTabTitle();
this.updateFlag('titleFlag', true);
}
......@@ -104,7 +104,6 @@ export default {
animate(title, description) {
this.title = title;
this.description = description;
this.setTabTitle();
this.$nextTick(() => {
this.updateFlag('titleFlag', false);
......@@ -117,6 +116,7 @@ export default {
const { title, description } = this.apiData;
this.descriptionText = this.apiData.description_text;
this.titleText = this.apiData.title_text;
const noTitleChange = this.title === title;
const noDescriptionChange = this.description === description;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment