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 4decb21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/javascripts/service/yobi.issue.LabelEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,16 @@
* @returns {boolean}
* @private
*/
function _isFormValid(){
function _isFormValid(){
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 4decb21

Please sign in to comment.