Skip to content

Commit

Permalink
Merge pull request #7 from agritheory/table-fixes
Browse files Browse the repository at this point in the history
fixes: consistent row height, payment entry link
  • Loading branch information
agritheory authored Aug 7, 2022
2 parents 62363ce + 3c1eaf3 commit 4911093
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions check_run/public/js/check_run/CheckRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
:id="item.id" />Pay
</td>
<td v-else>
<a :href="paymentEntryUrl(item)" target="_blank">
{{ item.check_number }}</a></td>
<a target="_blank" :href="paymentEntryUrl(item)">
{{ item.payment_entry }}</a></td>
</tr>
</template>
</tbody>
Expand Down Expand Up @@ -129,7 +129,7 @@ export default {
return encodeURI(`${frappe.urllib.get_base_url()}/app/${transaction.doctype.toLowerCase().replace(" ", "-")}/${transaction.name}`)
},
paymentEntryUrl: transaction => {
if(transaction.payment_entry) { return "" }
if(!transaction.payment_entry) { return "" }
return encodeURI(`${frappe.urllib.get_base_url()}/app/payment-entry/${transaction.payment_entry}`)
},
sortTransactions(key) {
Expand Down Expand Up @@ -193,4 +193,7 @@ export default {
.table tr.selectedRow {
background-color: var(--yellow-highlight-color);
}
.table tr {
height: 50px;
}
</style>

0 comments on commit 4911093

Please sign in to comment.