Fix hard coded plural text.
This commit is contained in:
parent
f498347d9b
commit
8429a57874
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue