🐛 fix: add success message for sorting in subscription table and update device limit terminology to "IP限制" for consistency

This commit is contained in:
web 2025-12-16 06:40:48 -08:00
parent 4b868b0c1d
commit d22919bf57
5 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,7 @@
"deviceLimit": "IP Limit",
"edit": "Edit",
"editSubscribe": "Edit Subscription",
"sortSuccess": "Sort completed successfully",
"form": {
"annualReset": "Annual Reset",
"basic": "Basic",

View File

@ -13,6 +13,7 @@
"deviceLimit": "IP限制",
"edit": "编辑",
"editSubscribe": "编辑订阅",
"sortSuccess": "排序成功",
"form": {
"annualReset": "年度重置",
"basic": "基本",

View File

@ -28,7 +28,7 @@
"deleteDescription": "此操作无法撤销。",
"deleteSubscriptionDescription": "此操作无法撤销。",
"deleteSuccess": "删除成功",
"deviceLimit": "设备限制",
"deviceLimit": "IP限制",
"download": "下载",
"downloadTraffic": "下载流量",
"edit": "编辑",

View File

@ -298,12 +298,13 @@ export default function SubscribeTable() {
);
if (changedItems.length > 0) {
subscribeSort({
await subscribeSort({
sort: changedItems.map((item) => ({
id: item.id,
sort: item.sort,
})) as API.SortItem[],
});
toast.success(t("sortSuccess", "Sort completed successfully"));
}
return updatedItems;

View File

@ -125,4 +125,8 @@
.container {
@apply mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8;
}
a,
button {
@apply cursor-pointer;
}
}