fix(clients): honor global pageSize and widen size-changer dropdown

Read pageSize from defaultSettings and apply it to the clients table so
the panel-wide pagination preference is respected. Widen the AntD
size-changer trigger and its teleported popup so '100 / page' no longer
truncates.
This commit is contained in:
MHSanaei
2026-05-19 17:02:34 +02:00
parent 5b5ac3f04b
commit 1b436bb3e0
2 changed files with 45 additions and 11 deletions
+3
View File
@@ -14,6 +14,7 @@ export function useClients() {
const tgBotEnable = ref(false);
const expireDiff = ref(0);
const trafficDiff = ref(0);
const pageSize = ref(0);
async function refresh() {
loading.value = true;
@@ -48,6 +49,7 @@ export function useClients() {
tgBotEnable.value = !!s.tgBotEnable;
expireDiff.value = (s.expireDiff ?? 0) * 86400000;
trafficDiff.value = (s.trafficDiff ?? 0) * 1073741824;
pageSize.value = s.pageSize ?? 0;
}
async function create(payload) {
@@ -199,6 +201,7 @@ export function useClients() {
tgBotEnable,
expireDiff,
trafficDiff,
pageSize,
refresh,
create,
update,