Skip to content

Commit

Permalink
Merge pull request #510 from AudiovisualMetadataPlatform/AMP-3080_dates
Browse files Browse the repository at this point in the history
AMP-3080
  • Loading branch information
yingfeng-iu authored May 2, 2024
2 parents f026e5c + 2c969ed commit 1913381
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/components/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -648,15 +648,13 @@
(item) => {
if (parent === 'TestResults')
return (
// item.field !== 'dateCreated' &&
item.field !== 'status' &&
item.field !== 'actions' &&
item.field !== 'addToTest'
);
else
return (
item.field !== 'testDate' &&
// item.field !== 'dateCreated' &&
item.field !== 'groundTruth' &&
item.field !== 'scores' &&
item.field !== 'addToTest'
Expand Down Expand Up @@ -1195,7 +1193,6 @@ export default {
}
return (
//column.field !== "dateCreated" &&
column.field !== "status" &&
column.field !== "actions"
);
Expand All @@ -1212,7 +1209,6 @@ export default {
return (
column.field !== "testDate" &&
//column.field !== "dateCreated" &&
column.field !== "groundTruth" &&
column.field !== "scores" &&
column.field !== "status" &&
Expand All @@ -1231,7 +1227,6 @@ export default {
this.columns = this.columns.filter((column) => {
return (
column.field !== "testDate" &&
//column.field !== "dateCreated" &&
column.field !== "unit" &&
column.field !== "externalSource" &&
column.field !== "workflowStep" &&
Expand Down
7 changes: 2 additions & 5 deletions src/components/dashboard/DashboardTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,12 @@
isSelected(rec.id),
}"
>
<td v-if="checkAvailability('dateCreated')">
{{ new Date(rec.dateCreated) | LOCAL_DATE_VALUE }}
</td>
<td v-if="checkAvailability('testDate')">
{{ new Date(rec.testDate) | LOCAL_DATE_VALUE }}
</td><!--
</td>
<td v-if="checkAvailability('dateCreated')">
{{ new Date(rec.dateCreated) | LOCAL_DATE_VALUE }}
</td>-->
</td>
<td v-if="checkAvailability('submitter')">{{ rec.submitter }}</td>
<td v-if="checkAvailability('unit')">{{ rec.unitName }}</td>
<td v-if="checkAvailability('collectionName')">
Expand Down
1 change: 0 additions & 1 deletion src/store/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ const state = {
dashboardColumns: [
{ order: "a", label: "Test Date", field: "testDate" },
{ order: "b", label: "Date", field: "dateCreated" },
//{ order: "c", label: "Workflow Date", field: "dateCreated" },
{ order: "d", label: "Submitter", field: "submitter" },
{ order: "e", label: "Unit", field: "unit" },
{ order: "f", label: "Collection", field: "collectionName" },
Expand Down

0 comments on commit 1913381

Please sign in to comment.