summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-19 15:59:36 +0100
committerPhil Hughes <me@iamphill.com>2017-05-19 16:36:23 +0100
commit1098020d2dd301e18c0b68a814ebe15bffb56ba4 (patch)
tree844c3733fe328ead9ab4127f22407d13a722acbc
parentb54faeb9527d61a89c999dc77c2af119942110ec (diff)
downloadgitlab-ce-tab-title-blank.tar.gz
Correctly set title_text with API datatab-title-blank
-rw-r--r--app/assets/javascripts/issue_show/issue_title_description.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/issue_show/issue_title_description.vue b/app/assets/javascripts/issue_show/issue_title_description.vue
index 920fbdfea6b..8a7a813efd8 100644
--- a/app/assets/javascripts/issue_show/issue_title_description.vue
+++ b/app/assets/javascripts/issue_show/issue_title_description.vue
@@ -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;