优化卸载app时的反馈提示

This commit is contained in:
jingrow 2025-06-30 14:16:31 +08:00
parent d14334fe03
commit ac8f9e01e1
2 changed files with 6 additions and 3 deletions

View File

@ -299,7 +299,10 @@ class Site(Document, TagHelpers):
status = jingrow.get_value(inst.pagetype, inst.name, "status", for_update=True)
if status not in allowed_status:
jingrow.throw(
f"不允许对状态为 {jingrow.bold(status)} 的站点执行此操作。\n允许的状态为:{jingrow.bold(comma_and(allowed_status))}"
jingrow._("不允许对状态为 {0} 的站点执行此操作。\n允许的状态为:{1}").format(
jingrow.bold(jingrow._(status)),
jingrow.bold(comma_and([jingrow._(s) for s in allowed_status]))
)
)
return func(inst, *args, **kwargs)

View File

@ -6,7 +6,7 @@ Action,行动,
Action Type,动作类型,
Actions,操作,
Activate Site,激活站点,
Active,,
Active,,
Add,添加,
Add Domain,添加域名,
Additional Permissions,额外的权限,
@ -187,7 +187,7 @@ Patch,补丁,
Payment Date,付款日期,
Payment Gateway,支付网关,
Payment Mode,支付方式,
Pending,,
Pending,处理,
Pending Verification,待验证,
Percent,百分之,
Permissions,权限,

1 API Key API密钥
6 Action Type 动作类型
7 Actions 操作
8 Activate Site 激活站点
9 Active 活动 激活
10 Add 添加
11 Add Domain 添加域名
12 Additional Permissions 额外的权限
187 Payment Date 付款日期
188 Payment Gateway 支付网关
189 Payment Mode 支付方式
190 Pending 等待 待处理
191 Pending Verification 待验证
192 Percent 百分之
193 Permissions 权限