We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c3ae5 commit 41d5504Copy full SHA for 41d5504
1 file changed
teepod/src/console.html
@@ -1314,7 +1314,7 @@ <h3>Derive VM</h3>
1314
const searchQuery = ref('');
1315
const currentPage = ref(1);
1316
const pageInput = ref(1);
1317
- const pageSize = ref(50);
+ const pageSize = ref(parseInt(localStorage.getItem('pageSize')) || 50);
1318
const totalVMs = ref(0);
1319
const hasMorePages = ref(false);
1320
const loadingVMDetails = ref(false);
@@ -2240,6 +2240,16 @@ <h3>Derive VM</h3>
2240
}
2241
}, { deep: true });
2242
2243
+ // Watch for changes to searchQuery and reset page to 1
2244
+ watch(searchQuery, () => {
2245
+ currentPage.value = 1;
2246
+ pageInput.value = 1;
2247
+ });
2248
+
2249
+ watch(pageSize, (newValue) => {
2250
+ localStorage.setItem('pageSize', newValue);
2251
2252
2253
return {
2254
vms,
2255
vmForm,
0 commit comments