summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-09-01 17:39:43 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-09-01 17:39:43 -0500
commit24da4198073bc8d4b4ac0a7175f0b46093905922 (patch)
tree225bce6846dd69e36904f8fa897024b08ffd0491
parent0b50c9226c0ce152be90d269db867bd3c750dfe5 (diff)
downloadgitlab-ce-24da4198073bc8d4b4ac0a7175f0b46093905922.tar.gz
Fixed spec errors
-rw-r--r--app/assets/javascripts/project_select_combo_button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/project_select_combo_button.js b/app/assets/javascripts/project_select_combo_button.js
index 822ca41a574..ba3c45ff553 100644
--- a/app/assets/javascripts/project_select_combo_button.js
+++ b/app/assets/javascripts/project_select_combo_button.js
@@ -57,10 +57,10 @@ export default class ProjectSelectComboButton {
setNewItemBtnAttributes(project) {
if (project) {
this.newItemBtn.attr('href', project.url);
- this.newItemBtn.text(`${this.formattedText.defaultTextPrefix} in ${project.name}`);
+ this.newItemBtn.text(`New ${this.deriveItemTypeFromLabel()} in ${project.name}`);
this.newItemBtn.enable();
} else {
- this.newItemBtn.text(`Select project to create ${this.formattedText.presetTextSuffix}`);
+ this.newItemBtn.text(`Select project to create ${this.deriveItemTypeFromLabel()}`);
this.newItemBtn.disable();
}
}