@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 +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1976,11 +1976,29 @@ var UsersScreen = defineComponent11({
|
|
|
1976
1976
|
list.isLoading.value ? h13("p", { style: styles.status }, "Loading\u2026") : null,
|
|
1977
1977
|
list.hasMore.value && !list.isLoading.value ? loadMoreButton(() => void list.loadMore()) : null
|
|
1978
1978
|
]) : null,
|
|
1979
|
-
error.value ? h13(
|
|
1979
|
+
error.value && !(error.value.status === 404 && selectedId.value) ? h13(
|
|
1980
1980
|
"p",
|
|
1981
1981
|
{ style: styles.error, role: "alert" },
|
|
1982
1982
|
error.value.status === 404 ? "No user with that email." : error.value.explanation
|
|
1983
1983
|
) : null,
|
|
1984
|
+
// Opened by id (e.g. from Subscriptions) and the account is gone —
|
|
1985
|
+
// deleted or purged — while its billing rows remain. Say so, and
|
|
1986
|
+
// still show the money.
|
|
1987
|
+
error.value?.status === 404 && selectedId.value ? [
|
|
1988
|
+
h13("div", { style: styles.notice, role: "status" }, [
|
|
1989
|
+
h13("strong", "No account with id "),
|
|
1990
|
+
h13("code", { style: styles.code }, selectedId.value),
|
|
1991
|
+
h13("strong", "."),
|
|
1992
|
+
" It was deleted, or never existed here. Its billing records remain."
|
|
1993
|
+
]),
|
|
1994
|
+
props.billingClient ? h13("h2", { style: styles.subtitle }, "Plan & credits") : null,
|
|
1995
|
+
props.billingClient ? h13(SubscriberBilling, {
|
|
1996
|
+
key: `missing-${selectedId.value}`,
|
|
1997
|
+
client: props.billingClient,
|
|
1998
|
+
subscriberType: "user",
|
|
1999
|
+
subscriberId: selectedId.value
|
|
2000
|
+
}) : null
|
|
2001
|
+
] : null,
|
|
1984
2002
|
u ? [
|
|
1985
2003
|
h13("h2", { style: styles.subtitle }, [
|
|
1986
2004
|
u.firstName || u.lastName ? `${u.firstName} ${u.lastName}`.trim() : u.email,
|