Commit 5eda016
committed
mgr/dashboard: improve search and pagination behavior
add a throttle to the pagination cycle so that if you repeatedly try to
cycle through the page, it increases the delay. Doing this because
unlike search the button click to change page is deliberate and the
first click to the button should respond immediately.
another thing is that the search with a keyword stores every keystroke i
do in the search field and then after the debouncce interval it sends
all those request one by one.
for eg: if i type 222 it waits 1s for the
debounce timer and then sends a request to find osd with id 2 first then
again 2 and then again 2. Instead it should only send 222 at the end.
Fixes: https://tracker.ceph.com/issues/72979
Signed-off-by: Nizamudeen A <[email protected]>1 parent 66ce55a commit 5eda016
File tree
1 file changed
+11
-3
lines changed1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
542 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
543 | 550 | | |
544 | 551 | | |
545 | 552 | | |
| |||
883 | 890 | | |
884 | 891 | | |
885 | 892 | | |
886 | | - | |
| 893 | + | |
| 894 | + | |
887 | 895 | | |
888 | 896 | | |
889 | 897 | | |
| |||
1239 | 1247 | | |
1240 | 1248 | | |
1241 | 1249 | | |
1242 | | - | |
| 1250 | + | |
1243 | 1251 | | |
1244 | 1252 | | |
1245 | 1253 | | |
| |||
0 commit comments