Commit 24da4198 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Fixed spec errors

parent 0b50c922
......@@ -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();
}
}
......
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