@7365admin1/layer-common 4.138.0 → 4.139.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.139.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4a51215: Super Admin Client List: "Cancel Invite" now asks for confirmation first and shows an error if cancelling fails.
8
+
3
9
  ## 4.138.0
4
10
 
5
11
  ### Minor Changes
@@ -3383,11 +3389,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
3383
3389
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
3384
3390
  own rule from two endpoints the console already calls, unprojected:
3385
3391
 
3386
- GET /api/members/user/:user/app/admin the Seven365 staff membership
3387
- GET /api/roles/id/:role that membership's role document
3392
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
3393
+ GET /api/roles/id/:role that membership's role document
3388
3394
 
3389
- owner = member.type === "admin" && role.type === "admin" && role.default === true
3390
- staff = member.type === "admin" && role.type === "admin"
3395
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
3396
+ staff = member.type === "admin" && role.type === "admin"
3391
3397
 
3392
3398
  `role.default` is the marker because it is the only property of a platform
3393
3399
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -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.138.0",
5
+ "version": "4.139.0",
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.",