From 89d4d5fdb948de4af9142e421bd2bed540d8921b Mon Sep 17 00:00:00 2001 From: Nick Palladino Date: Tue, 24 Jan 2023 14:20:16 -0500 Subject: [PATCH] Added createdBy and createdDate filtering to experiments table --- src/breeding-insight/model/Sort.ts | 4 +++- src/components/experiments/ExperimentsObservationsTable.vue | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/breeding-insight/model/Sort.ts b/src/breeding-insight/model/Sort.ts index 555d237fe..5acfa5ab0 100644 --- a/src/breeding-insight/model/Sort.ts +++ b/src/breeding-insight/model/Sort.ts @@ -173,7 +173,9 @@ export class GermplasmSort { // experiments export enum ExperimentSortField { Name = "name", - Active = "active" + Active = "active", + CreatedBy = "createdBy", + CreatedDate = "createdDate" } export class ExperimentSort { diff --git a/src/components/experiments/ExperimentsObservationsTable.vue b/src/components/experiments/ExperimentsObservationsTable.vue index 7f1aa0632..3f2b73133 100644 --- a/src/components/experiments/ExperimentsObservationsTable.vue +++ b/src/components/experiments/ExperimentsObservationsTable.vue @@ -40,10 +40,10 @@ {{ getStatus(props.row.data.active) }} - + {{ props.row.data.additionalInfo.createdDate }} - + {{ props.row.data.additionalInfo.createdBy.userName }} @@ -136,6 +136,8 @@ export default class ExperimentsObservationsTable extends Vue { private fieldMap: any = { 'name': ExperimentSortField.Name, 'active': ExperimentSortField.Active, + 'createdDate': ExperimentSortField.CreatedDate, + 'createdBy': ExperimentSortField.CreatedBy }; mounted() {