Skip to content

Commit

Permalink
Merge branch 'scv-399'
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-rados committed Jul 24, 2023
2 parents 8672586 + 1cd7212 commit 1a2dacf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion web/src/components/civil/CivilCaseDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,11 @@ export default class CivilCaseDetails extends Vue {
}
docInfo.documentId = jDoc.civilDocumentId;
docInfo.pdfAvail = jDoc.imageId ? true : false;
docInfo.dateFiled = jDoc.filedDt ? jDoc.filedDt.split(" ")[0] : "";
if (docInfo.documentType.toUpperCase() == "ORDER") {
docInfo.dateFiled = jDoc.DateGranted ? jDoc.DateGranted.split(" ")[0] : "";
} else {
docInfo.dateFiled = jDoc.filedDt ? jDoc.filedDt.split(" ")[0] : "";
}
docInfo.issues = [];
if (jDoc.issue && jDoc.issue.length > 0) {
for (const issue of jDoc.issue) {
Expand Down
13 changes: 11 additions & 2 deletions web/src/components/civil/CivilDocumentsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,13 @@ export default class CivilDocumentsView extends Vue {
tdClass: "border-top",
thClass: "",
},
{ key: "seq", label: "Seq.", sortable: true, headerStyle: "text-primary", cellStyle: "font-size: 14px;" },
{
key: "seq",
label: "Seq.",
sortable: true,
headerStyle: "text-primary",
cellStyle: "font-size: 14px;"
},
{
key: "documentType",
label: "Document Type",
Expand Down Expand Up @@ -726,9 +732,12 @@ export default class CivilDocumentsView extends Vue {
if (this.activetab == "COURT SUMMARY") {
this.sortDesc = true;
return "appearanceDate";
} else {
} else if (this.activetab == "ORDERS") {
this.sortDesc = false;
return "seq";
} else {
this.sortDesc = true;
return "dateFiled"
}
}
Expand Down

0 comments on commit 1a2dacf

Please sign in to comment.