🐛 fix: add success message for sorting in subscription table and update device limit terminology to "IP限制" for consistency
This commit is contained in:
parent
4b868b0c1d
commit
d22919bf57
@ -13,6 +13,7 @@
|
||||
"deviceLimit": "IP Limit",
|
||||
"edit": "Edit",
|
||||
"editSubscribe": "Edit Subscription",
|
||||
"sortSuccess": "Sort completed successfully",
|
||||
"form": {
|
||||
"annualReset": "Annual Reset",
|
||||
"basic": "Basic",
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
"deviceLimit": "IP限制",
|
||||
"edit": "编辑",
|
||||
"editSubscribe": "编辑订阅",
|
||||
"sortSuccess": "排序成功",
|
||||
"form": {
|
||||
"annualReset": "年度重置",
|
||||
"basic": "基本",
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
"deleteDescription": "此操作无法撤销。",
|
||||
"deleteSubscriptionDescription": "此操作无法撤销。",
|
||||
"deleteSuccess": "删除成功",
|
||||
"deviceLimit": "设备限制",
|
||||
"deviceLimit": "IP限制",
|
||||
"download": "下载",
|
||||
"downloadTraffic": "下载流量",
|
||||
"edit": "编辑",
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user