Skip to content

Commit 266b4bb

Browse files
authored
Merge pull request #39 from appirio-tech/dev
Fix for blanks on submit date
2 parents 2acea99 + ba6ec74 commit 266b4bb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app/filters.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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');

src/app/work/projects.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)