From 4b0495c851a167a9e680ed8680329e077e77644c Mon Sep 17 00:00:00 2001 From: jeznorth Date: Mon, 8 Jun 2020 09:47:23 -0700 Subject: [PATCH] UI updates for the transaction list (#752) Co-authored-by: Nitheesh T Ganesh <60233274+nitheesh-aot@users.noreply.github.com> --- auth-web/src/components/auth/Transactions.vue | 22 ++++++--- .../components/auth/TransactionsDataTable.vue | 46 +++++++++++-------- auth-web/src/util/common-util.ts | 2 +- 3 files changed, 42 insertions(+), 28 deletions(-) diff --git a/auth-web/src/components/auth/Transactions.vue b/auth-web/src/components/auth/Transactions.vue index 9406f51a6..c48967e25 100644 --- a/auth-web/src/components/auth/Transactions.vue +++ b/auth-web/src/components/auth/Transactions.vue @@ -23,7 +23,7 @@ -
+
Export CSV
-
{{totalTransactionsCount}} Records found
+
{{totalTransactionsCount}} Records found
{{status.status}} - {{status.description}} @@ -28,19 +29,18 @@
@@ -108,7 +103,8 @@ export default class TransactionsDataTable extends Vue { text: 'Folio #', align: 'left', sortable: false, - value: 'folioNumber' + value: 'folioNumber', + width: 115 }, { text: 'Initiated By', @@ -120,19 +116,22 @@ export default class TransactionsDataTable extends Vue { text: 'Date', align: 'left', value: 'transactionDate', - sortable: false + sortable: false, + width: 115 }, { text: 'Total Amount', - align: 'left', + align: 'right', value: 'totalAmount', - sortable: false + sortable: false, + width: 125 }, { text: 'Status', align: 'left', value: 'status', - sortable: false + sortable: false, + width: 115 } ] @@ -235,8 +234,9 @@ export default class TransactionsDataTable extends Vue { } .status-tooltip-icon { - margin-top: -2px; + margin-top: -4px; margin-right: 5px; + margin-left: 2px; } .v-tooltip__content:before { @@ -260,14 +260,20 @@ export default class TransactionsDataTable extends Vue { color: #000 } } + td { padding-top: 1rem; padding-bottom: 1rem; height: auto; vertical-align: top; + overflow: hidden; } - .v-list-item__title { + + .product-name { display: block; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; font-weight: 700; } } diff --git a/auth-web/src/util/common-util.ts b/auth-web/src/util/common-util.ts index 71e976c72..e8aec176c 100644 --- a/auth-web/src/util/common-util.ts +++ b/auth-web/src/util/common-util.ts @@ -51,7 +51,7 @@ export default class CommonUtils { // Formatting date in the desired format for displaying in the template static formatDisplayDate (date: Date, format?: string) { - return moment(date).format(format || 'DD MMM, YYYY') + return moment(date).format(format || 'MM-DD-YYYY') } // Formatting date in the desired format for vue date pickers