File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ angular.module('supportAdminApp')
4242 } ;
4343 } )
4444 . filter ( 'fmtDate' , function ( ) {
45- return function ( date ) {
45+ return function ( date , blankOnNull ) {
46+ if ( blankOnNull && ! date ) {
47+ return '' ;
48+ }
49+
4650 date = date ? new Date ( date ) : new Date ( ) ;
4751 var yyyy = date . getFullYear ( ) ;
4852 var mm = _ . padStart ( date . getMonth ( ) + 1 , 2 , '0' ) ;
Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ <h2>Projects</h2>
153153 </ a >
154154 {{proj.copilotId === 'unassigned' ? proj.copilotId : ''}}
155155 </ td >
156- < td > {{proj.submittedAt | fmtDate}}</ td >
156+ < td >
157+ <!-- display submitted date column
158+ don't supply `true` to fmtDate as second argument, if you want previous behavior
159+ i.e) { proj.submittedAt | fmtDate } -->
160+ {{proj.submittedAt | fmtDate: true }}
161+ </ td >
157162 < td > {{proj.status | capitalize }}</ td >
158163 < td > {{proj.currentStep}}</ td >
159164 < td >
You can’t perform that action at this time.
0 commit comments