Skip to content

Commit

Permalink
MOL-1268: fix subscription with deleted customers (#657)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored Nov 20, 2023
1 parent 87cc065 commit 992063c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@
{% endblock %}

{% block mollie_payments_subscription_list_content_customer %}
<template #column-customerId="{ item }">
{{ item.customer.firstName }} {{ item.customer.lastName }}
<template #column-customerId="{ item }" >
<div v-if="item.customer">
{{ item.customer.firstName }} {{ item.customer.lastName }}
</div>
<div v-else>
{{ $tc('mollie-payments.subscriptions.list.deletedCustomer') }}
</div>
</template>
{% endblock %}

Expand Down
3 changes: 2 additions & 1 deletion src/Resources/app/administration/src/snippet/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@
},
"action": {
"edit": "Abonnement bearbeiten"
}
},
"deletedCustomer": "Gelöschter Kunde"
},
"detail": {
"title": "Mollie Abonnements",
Expand Down
3 changes: 2 additions & 1 deletion src/Resources/app/administration/src/snippet/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@
},
"action": {
"edit": "Edit subscription"
}
},
"deletedCustomer": "Deleted customer"
},
"detail": {
"title": "Mollie subscription",
Expand Down
3 changes: 2 additions & 1 deletion src/Resources/app/administration/src/snippet/nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@
},
"action": {
"edit": "Abonnement bewerken"
}
},
"deletedCustomer": "Klant verwijderd"
},
"detail": {
"title": "Mollie Abonnement",
Expand Down

0 comments on commit 992063c

Please sign in to comment.