Null-Time view helper.
This commit is contained in:
parent
2d21a158fe
commit
2a82dfe3fe
1 changed files with 8 additions and 0 deletions
8
app/helpers/null-time.js
Normal file
8
app/helpers/null-time.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import Ember from 'ember';
|
||||||
|
|
||||||
|
export default Ember.Handlebars.makeBoundHelper(function(value, options) {
|
||||||
|
if (value == null) {
|
||||||
|
return 'N/A';
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
});
|
Reference in a new issue