@fonderie/vue-admin-screens 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2011,11 +2011,29 @@ var UsersScreen = (0, import_vue14.defineComponent)({
2011
2011
  list.isLoading.value ? (0, import_vue14.h)("p", { style: styles.status }, "Loading\u2026") : null,
2012
2012
  list.hasMore.value && !list.isLoading.value ? loadMoreButton(() => void list.loadMore()) : null
2013
2013
  ]) : null,
2014
- error.value ? (0, import_vue14.h)(
2014
+ error.value && !(error.value.status === 404 && selectedId.value) ? (0, import_vue14.h)(
2015
2015
  "p",
2016
2016
  { style: styles.error, role: "alert" },
2017
2017
  error.value.status === 404 ? "No user with that email." : error.value.explanation
2018
2018
  ) : null,
2019
+ // Opened by id (e.g. from Subscriptions) and the account is gone —
2020
+ // deleted or purged — while its billing rows remain. Say so, and
2021
+ // still show the money.
2022
+ error.value?.status === 404 && selectedId.value ? [
2023
+ (0, import_vue14.h)("div", { style: styles.notice, role: "status" }, [
2024
+ (0, import_vue14.h)("strong", "No account with id "),
2025
+ (0, import_vue14.h)("code", { style: styles.code }, selectedId.value),
2026
+ (0, import_vue14.h)("strong", "."),
2027
+ " It was deleted, or never existed here. Its billing records remain."
2028
+ ]),
2029
+ props.billingClient ? (0, import_vue14.h)("h2", { style: styles.subtitle }, "Plan & credits") : null,
2030
+ props.billingClient ? (0, import_vue14.h)(SubscriberBilling, {
2031
+ key: `missing-${selectedId.value}`,
2032
+ client: props.billingClient,
2033
+ subscriberType: "user",
2034
+ subscriberId: selectedId.value
2035
+ }) : null
2036
+ ] : null,
2019
2037
  u ? [
2020
2038
  (0, import_vue14.h)("h2", { style: styles.subtitle }, [
2021
2039
  u.firstName || u.lastName ? `${u.firstName} ${u.lastName}`.trim() : u.email,