Skip to content

Commit

Permalink
feat: save pagelength per user
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitbhanushali committed Feb 27, 2024
1 parent e0d100f commit 798f538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desk/src/pages/tickets/TicketsAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ let storage = useStorage("tickets_agent", {
sortsToApply: "modified desc",
columns: [],
rows: [],
pageLength: 20,
});
let items = ref([]);
Expand All @@ -71,7 +72,7 @@ let filters = ref(storage.value.filters);
let sorts = ref(storage.value.sorts);
let sortsToApply = storage.value.sortsToApply;
let pageLength = ref(20);
let pageLength = ref(storage.value.pageLength);
let pageLengthCount = pageLength.value;
const tickets = createResource({
Expand Down Expand Up @@ -135,6 +136,7 @@ function updatePageLength(value) {
} else {
pageLength.value = value;
pageLengthCount = value;
storage.value.pageLength = value;
}
apply();
Expand Down

0 comments on commit 798f538

Please sign in to comment.