Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/app/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ angular.module('supportAdminApp')
};
})
.filter('fmtDate', function () {
return function (date) {
return function (date, blankOnNull) {
if (blankOnNull && !date) {
return '';
}

date = date ? new Date(date) : new Date();
var yyyy = date.getFullYear();
var mm = _.padStart(date.getMonth() + 1, 2, '0');
Expand Down
7 changes: 6 additions & 1 deletion src/app/work/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@ <h2>Projects</h2>
</a>
{{proj.copilotId === 'unassigned' ? proj.copilotId : ''}}
</td>
<td>{{proj.submittedAt | fmtDate}}</td>
<td>
<!-- display submitted date column
don't supply `true` to fmtDate as second argument, if you want previous behavior
i.e) { proj.submittedAt | fmtDate } -->
{{proj.submittedAt | fmtDate: true }}
</td>
<td>{{proj.status | capitalize }}</td>
<td>{{proj.currentStep}}</td>
<td>
Expand Down