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
1 change: 1 addition & 0 deletions src/breeding-insight/model/Sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export enum GermplasmSortField {
Pedigree = "pedigree",
FemaleParent = "femaleParentGID",
MaleParent = "maleParentGID",
ExternalUID = "externalUID",
CreatedDate = "createdDate",
UserName = "createdByUserName"
}
Expand Down
1 change: 1 addition & 0 deletions src/breeding-insight/utils/GermplasmUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import moment from "moment";
import {Germplasm} from "@/breeding-insight/brapi/model/germplasm";
import {MOMENT_BRAPI_DATE_FORMAT} from "@/breeding-insight/utils/BrAPIDateTime";
import {ExternalReferences} from "@/breeding-insight/brapi/model/externalReferences";

// The moment.js interpretable format for Date values sent and received via the BI API.
export const MOMENT_DATE_PERSISTED_FORMAT = 'DD/MM/YYYY h:mm:ss';
Expand Down
4 changes: 4 additions & 0 deletions src/components/germplasm/GermplasmTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
v-bind:germplasmGID="Pedigree.parsePedigreeStringWithUnknowns(props.row.data.pedigree,props.row.data.additionalInfo.femaleParentUnknown,props.row.data.additionalInfo.maleParentUnknown, props.row.data.accessionNumber).maleParent"
> </GermplasmLink>
</b-table-column>
<b-table-column field="externalUID" label="External UID" sortable v-slot="props" :th-attrs="(column) => ({scope:'col'})" searchable>
{{ GermplasmUtils.getExternalUID(props.row.data) }}
</b-table-column>
<b-table-column field="createdDate" label="Created Date" sortable v-slot="props" :th-attrs="(column) => ({scope:'col'})" searchable>
{{ GermplasmUtils.getCreatedDate(props.row.data) }}
</b-table-column>
Expand Down Expand Up @@ -134,6 +137,7 @@ export default class GermplasmTable extends Vue {
'seedSource': GermplasmSortField.SeedSource,
'femaleParentGID': GermplasmSortField.FemaleParent,
'maleParentGID': GermplasmSortField.MaleParent,
'externalUID' : GermplasmSortField.ExternalUID,
'createdDate': GermplasmSortField.CreatedDate,
'createdByUserName': GermplasmSortField.UserName,
};
Expand Down
Loading