Skip to content

Commit

Permalink
21527 - UXA Feedback (#2916)
Browse files Browse the repository at this point in the history
  • Loading branch information
ochiu authored Jul 17, 2024
1 parent e0c659d commit 37eec40
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.49",
"version": "2.6.50",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
8 changes: 7 additions & 1 deletion auth-web/src/components/pay/ShortNameSummaryTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
v-model="actionDropdown[index]"
:attach="`#action-menu-${index}`"
offset-y
nudge-left="74"
nudge-left="130"
>
<template #activator="{ on }">
<v-btn
Expand Down Expand Up @@ -415,4 +415,10 @@ export default defineComponent({
#short-name-summaries {
border: 1px solid #e9ecef
}
.new-actions {
.v-list {
width:180px
}
}
</style>
19 changes: 12 additions & 7 deletions auth-web/src/components/pay/eft/ShortNameAccountLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<span>{{ formatCurrency(item.amountOwing) }}</span>
</template>
<template #expanded-item="{ item }">
<tr class="expanded-item-row">
<tr class="expanded-item-row" v-if="item.hasPendingPayment">
<td
:colspan="headers.length"
class="pb-5 pl-0"
Expand Down Expand Up @@ -147,14 +147,13 @@
v-model="actionDropdown[index]"
:attach="`#action-menu-${index}`"
offset-y
nudge-left="74"
nudge-left="156"
>
<template #activator="{ on }">
<v-btn
small
color="primary"
min-height="2rem"
class="more-actions-btn"
class="more-actions-btn pa-0"
:loading="loading"
v-on="on"
>
Expand All @@ -163,7 +162,7 @@
</template>
<v-list>
<v-list-item
class="actions-dropdown_item"
class="actions-dropdown_item pl-6 pt-1 pb-1 ma-0"
>
<v-list-item-subtitle
@click="showConfirmUnlinkAccountModal(item)"
Expand Down Expand Up @@ -323,10 +322,11 @@ export default defineComponent({
async function onLinkAccount (account: any) {
await loadShortNameLinks()
emit('on-link-account', account, state.results)
emit('on-payment-action')
}
function showApplyPayment (item: any) {
return props.shortNameDetails.creditsRemaining >= item.amountOwing
return item.amountOwing > 0 && props.shortNameDetails.creditsRemaining >= item.amountOwing
}
function dialogConfirm () {
Expand Down Expand Up @@ -448,7 +448,6 @@ export default defineComponent({
showConfirmCancelPaymentModal,
showConfirmUnlinkAccountModal,
onLinkAccount,
unlinkAccount,
applyPayment,
showApplyPayment,
getEFTShortNameSummaries,
Expand Down Expand Up @@ -512,6 +511,12 @@ export default defineComponent({
padding: 16px 0 16px 0
}
.new-actions {
.v-list {
width:206px
}
}
// Remove border for rows that are expanded with additional information
tr:has(+ tr.expanded-item-row) td {
border-bottom: none !important;
Expand Down

0 comments on commit 37eec40

Please # to comment.