Fix up moment js
This commit is contained in:
parent
fb88f494b2
commit
56c0e92fe6
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import { formatDate } from '../utils/date-helpers';
|
import { formatDate } from '../utils/date-helpers';
|
||||||
|
|
||||||
export default Ember.Handlebars.makeBoundHelper(function(value, format) {
|
export default Ember.Helper.helper(function(params) {
|
||||||
|
let value = params[0],
|
||||||
|
format = params[1];
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return 'N/A';
|
return 'N/A';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"qunit": "~1.18.0",
|
"qunit": "~1.18.0",
|
||||||
"flakes": "~1.0.0",
|
"flakes": "~1.0.0",
|
||||||
"ember-simple-auth": "~0.8.0",
|
"ember-simple-auth": "~0.8.0",
|
||||||
"moment": "~2.9.0",
|
"moment": "~2.10.6",
|
||||||
"select2": "3.5.2",
|
"select2": "3.5.2",
|
||||||
"antiscroll": "git://github.com/azirbel/antiscroll.git#90391fb371c7be769bc32e7287c5271981428356",
|
"antiscroll": "git://github.com/azirbel/antiscroll.git#90391fb371c7be769bc32e7287c5271981428356",
|
||||||
"jquery-mousewheel": "~3.1.4",
|
"jquery-mousewheel": "~3.1.4",
|
||||||
|
|
Reference in a new issue