BigW Consortium Gitlab

Commit 1098020d by Phil Hughes

Correctly set title_text with API data

parent b54faeb9
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}, },
elementsToVisualize(noTitleChange, noDescriptionChange) { elementsToVisualize(noTitleChange, noDescriptionChange) {
if (!noTitleChange) { if (!noTitleChange) {
this.titleText = this.apiData.title_text; this.setTabTitle();
this.updateFlag('titleFlag', true); this.updateFlag('titleFlag', true);
} }
...@@ -104,7 +104,6 @@ export default { ...@@ -104,7 +104,6 @@ export default {
animate(title, description) { animate(title, description) {
this.title = title; this.title = title;
this.description = description; this.description = description;
this.setTabTitle();
this.$nextTick(() => { this.$nextTick(() => {
this.updateFlag('titleFlag', false); this.updateFlag('titleFlag', false);
...@@ -117,6 +116,7 @@ export default { ...@@ -117,6 +116,7 @@ export default {
const { title, description } = this.apiData; const { title, description } = this.apiData;
this.descriptionText = this.apiData.description_text; this.descriptionText = this.apiData.description_text;
this.titleText = this.apiData.title_text;
const noTitleChange = this.title === title; const noTitleChange = this.title === title;
const noDescriptionChange = this.description === description; 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