@7365admin1/layer-common 4.97.1-staging.583 → 4.97.1-staging.584
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.
|
@@ -767,10 +767,14 @@ function handleSuccess() { dialog.value = false; fetchData() }
|
|
|
767
767
|
|
|
768
768
|
/* ── CANCEL INVITE ── */
|
|
769
769
|
async function cancelInvite(item: any) {
|
|
770
|
+
// ponytail: native confirm/alert - this console page has no snackbar of its own.
|
|
771
|
+
if (!window.confirm(`Cancel the invitation for ${item.email}? They will no longer be able to use the invite link.`)) return
|
|
770
772
|
try {
|
|
771
773
|
cancelLoadingId.value = item._id
|
|
772
774
|
await cancelUserInvitation(item._id)
|
|
773
775
|
await fetchData()
|
|
776
|
+
} catch (error: any) {
|
|
777
|
+
window.alert(error?.data?.message || error?.message || 'Could not cancel the invitation. Please try again.')
|
|
774
778
|
} finally {
|
|
775
779
|
cancelLoadingId.value = null
|
|
776
780
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.584",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|