🐛 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",
|
"deviceLimit": "IP Limit",
|
||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
"editSubscribe": "Edit Subscription",
|
"editSubscribe": "Edit Subscription",
|
||||||
|
"sortSuccess": "Sort completed successfully",
|
||||||
"form": {
|
"form": {
|
||||||
"annualReset": "Annual Reset",
|
"annualReset": "Annual Reset",
|
||||||
"basic": "Basic",
|
"basic": "Basic",
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
"deviceLimit": "IP限制",
|
"deviceLimit": "IP限制",
|
||||||
"edit": "编辑",
|
"edit": "编辑",
|
||||||
"editSubscribe": "编辑订阅",
|
"editSubscribe": "编辑订阅",
|
||||||
|
"sortSuccess": "排序成功",
|
||||||
"form": {
|
"form": {
|
||||||
"annualReset": "年度重置",
|
"annualReset": "年度重置",
|
||||||
"basic": "基本",
|
"basic": "基本",
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
"deleteDescription": "此操作无法撤销。",
|
"deleteDescription": "此操作无法撤销。",
|
||||||
"deleteSubscriptionDescription": "此操作无法撤销。",
|
"deleteSubscriptionDescription": "此操作无法撤销。",
|
||||||
"deleteSuccess": "删除成功",
|
"deleteSuccess": "删除成功",
|
||||||
"deviceLimit": "设备限制",
|
"deviceLimit": "IP限制",
|
||||||
"download": "下载",
|
"download": "下载",
|
||||||
"downloadTraffic": "下载流量",
|
"downloadTraffic": "下载流量",
|
||||||
"edit": "编辑",
|
"edit": "编辑",
|
||||||
|
|||||||
@ -298,12 +298,13 @@ export default function SubscribeTable() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (changedItems.length > 0) {
|
if (changedItems.length > 0) {
|
||||||
subscribeSort({
|
await subscribeSort({
|
||||||
sort: changedItems.map((item) => ({
|
sort: changedItems.map((item) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
sort: item.sort,
|
sort: item.sort,
|
||||||
})) as API.SortItem[],
|
})) as API.SortItem[],
|
||||||
});
|
});
|
||||||
|
toast.success(t("sortSuccess", "Sort completed successfully"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return updatedItems;
|
return updatedItems;
|
||||||
|
|||||||
@ -125,4 +125,8 @@
|
|||||||
.container {
|
.container {
|
||||||
@apply mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8;
|
@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