Skip to content

Commit

Permalink
issue: Fix wrong message key
Browse files Browse the repository at this point in the history
- There is not "label.failed" message key so it causes that
the message to not display correctly.
  • Loading branch information
helols committed Mar 16, 2017
1 parent ae653a2 commit 78d6591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/javascripts/service/yobi.issue.LabelEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@
if(elements.inputCategory.val().length === 0 ||
elements.inputName.val().length === 0 ||
elements.inputColor.val().length === 0){
$yobi.alert(Messages("label.failed") + "\n" + Messages("label.error.empty"));
$yobi.alert(Messages("label.failedTo", Messages("label.add")) + "\n" + Messages("label.error.empty"));
return false;
}

if(_getRefinedHexColor(elements.inputColor.val()) === false){
$yobi.alert(Messages("label.failed") + "\n" + Messages("label.error.color", elements.inputColor.val()));
$yobi.alert(Messages("label.failedTo", Messages("label.add")) + "\n" + Messages("label.error.color", elements.inputColor.val()));
return false;
}

Expand Down

0 comments on commit 78d6591

Please sign in to comment.