summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/commits.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-11-13 09:11:54 +0000
committerPhil Hughes <me@iamphill.com>2017-11-13 09:11:54 +0000
commit1ff3f1a4f7021c7337df3cd1c24c167447b64f2b (patch)
tree430c18703ef3f04922f7b4042e99cae8d6473c79 /app/assets/javascripts/commits.js
parentc6a48f3f92ce4b9a7e15f6e7e4845612233ae7e5 (diff)
downloadgitlab-ce-1ff3f1a4f7021c7337df3cd1c24c167447b64f2b.tar.gz
Export text utils as ES6 modules
Diffstat (limited to 'app/assets/javascripts/commits.js')
-rw-r--r--app/assets/javascripts/commits.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/commits.js b/app/assets/javascripts/commits.js
index ae6b8902032..9b952ea7b60 100644
--- a/app/assets/javascripts/commits.js
+++ b/app/assets/javascripts/commits.js
@@ -3,6 +3,8 @@
prefer-template, object-shorthand, prefer-arrow-callback */
/* global Pager */
+import { pluralize } from './lib/utils/text_utility';
+
export default (function () {
const CommitsList = {};
@@ -86,7 +88,7 @@ export default (function () {
// Update commits count in the previous commits header.
commitsCount += Number($(processedData).nextUntil('li.js-commit-header').first().find('li.commit').length);
- $commitsHeadersLast.find('span.commits-count').text(`${commitsCount} ${gl.text.pluralize('commit', commitsCount)}`);
+ $commitsHeadersLast.find('span.commits-count').text(`${commitsCount} ${pluralize('commit', commitsCount)}`);
}
gl.utils.localTimeAgo($processedData.find('.js-timeago'));