From 24da4198073bc8d4b4ac0a7175f0b46093905922 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Fri, 1 Sep 2017 17:39:43 -0500 Subject: Fixed spec errors --- app/assets/javascripts/project_select_combo_button.js | 4 ++-- 1 file 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(); } } -- cgit v1.2.1