Fix hard coded plural text.

This commit is contained in:
Fatih Acet 2016-08-13 00:30:44 +03:00
parent f498347d9b
commit 8429a57874
2 changed files with 4 additions and 2 deletions

View file

@ -39,6 +39,9 @@ class MergeConflictDataProvider {
vueInstance.conflictsData = data;
vueInstance.isSubmitting = false;
const conflictsText = this.getConflictsCount() > 1 ? 'conflicts' : 'conflict';
vueInstance.conflictsData.conflictsText = conflictsText;
}
@ -101,7 +104,6 @@ class MergeConflictDataProvider {
}
});
}

View file

@ -13,7 +13,7 @@
.js-toggle-container
.commit-stat-summary
Showing
%strong.cred {{conflictsCount}} conflicts
%strong.cred {{conflictsCount}} {{conflictsData.conflictsText}}
between
%strong {{conflictsData.source_branch}}
and