Commit a97b352
committed
fix: hide view, download and filter buttons when there are no records
When a storage contains no records at all, only the empty-state infobox
is shown. The view, download and filter doc-header buttons had nothing to
act on and were dead controls, so they are now skipped when
fullRecordCount is 0. The count is memoized to avoid a second query.
The guard uses fullRecordCount, not recordCount, so the buttons still
show when records exist but a search returns no matches.
Resolves #1071 parent f674878 commit a97b352
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
674 | 676 | | |
675 | 677 | | |
676 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
677 | 683 | | |
678 | | - | |
| 684 | + | |
679 | 685 | | |
680 | 686 | | |
681 | 687 | | |
| |||
691 | 697 | | |
692 | 698 | | |
693 | 699 | | |
694 | | - | |
| 700 | + | |
695 | 701 | | |
696 | 702 | | |
697 | 703 | | |
| |||
2182 | 2188 | | |
2183 | 2189 | | |
2184 | 2190 | | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2185 | 2196 | | |
2186 | 2197 | | |
2187 | 2198 | | |
| |||
2238 | 2249 | | |
2239 | 2250 | | |
2240 | 2251 | | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2241 | 2257 | | |
2242 | 2258 | | |
2243 | 2259 | | |
| |||
2498 | 2514 | | |
2499 | 2515 | | |
2500 | 2516 | | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
2501 | 2522 | | |
2502 | 2523 | | |
2503 | 2524 | | |
| |||
0 commit comments