Skip to content

Commit edb266b

Browse files
fix(web): clarify package effects in ban confirmations
1 parent 0b80fea commit edb266b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

src/routes/management.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,11 @@ function Management() {
668668
disabled={!canBanOwner}
669669
onClick={() => {
670670
if (!ownerUserId || ownerUserId === me?._id) return;
671-
if (!window.confirm(`Ban @${ownerHandle} and delete their skills?`)) {
671+
if (
672+
!window.confirm(
673+
`Ban @${ownerHandle}, hide their skills and personal package/plugin resources, and revoke package publish tokens?`,
674+
)
675+
) {
672676
return;
673677
}
674678
const reason = promptBanReason(`@${ownerHandle}`);
@@ -1016,7 +1020,7 @@ function Management() {
10161020
if (user._id === me?._id) return;
10171021
if (
10181022
!window.confirm(
1019-
`Ban @${user.handle ?? user.name ?? "user"} and delete their skills?`,
1023+
`Ban @${user.handle ?? user.name ?? "user"}, hide their skills and personal package/plugin resources, and revoke package publish tokens?`,
10201024
)
10211025
) {
10221026
return;
@@ -1036,7 +1040,11 @@ function Management() {
10361040
type="button"
10371041
onClick={() => {
10381042
const label = `@${user.handle ?? user.name ?? "user"}`;
1039-
if (!window.confirm(`Unban ${label} and restore eligible skills?`)) {
1043+
if (
1044+
!window.confirm(
1045+
`Unban ${label} and restore eligible skills and ban-hidden personal package/plugin resources?`,
1046+
)
1047+
) {
10401048
return;
10411049
}
10421050
const reason = promptUnbanReason(label);

0 commit comments

Comments
 (0)