Commit 7bc95ea
authored
WEBUI-1124 : Fix empty-label of nuxeo-favorites not appearing with POST page provider method [LTS-2025] (#3223)
* WEBUI-1124 : Fix empty-label of nuxeo-favorites not appearing with POST page provider method
- Reset page provider resultsCount and list state when no favorites collection exists
- Change favorites property type from Object to Array to match actual data shape
- Add unit tests for _refresh() behavior
* WEBUI-1124 : Explicitly set empty label to fix display on hard reload
The debounced _computeLabel in PageProviderDisplayBehavior does not reliably
set the empty label when the page provider was never fetched (POST method).
Directly assign _computedEmptyLabel on the data-list after reset.
* WEBUI-1124: fix empty label not appearing on hard reload
- Add [hidden] { display: none !important } to fix CSS specificity issue
where .emptyResult { display: block } was overriding the hidden attribute
- Check favorites length after fetch to handle the case where the
collection exists but is empty (all favorites removed)
- Add test for empty collection case1 parent 76fdf54 commit 7bc95ea
2 files changed
Lines changed: 73 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
| |||
132 | 149 | | |
133 | 150 | | |
134 | 151 | | |
| 152 | + | |
135 | 153 | | |
136 | 154 | | |
137 | 155 | | |
| |||
142 | 160 | | |
143 | 161 | | |
144 | 162 | | |
| 163 | + | |
145 | 164 | | |
146 | 165 | | |
147 | 166 | | |
| |||
174 | 193 | | |
175 | 194 | | |
176 | 195 | | |
177 | | - | |
| 196 | + | |
178 | 197 | | |
179 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
180 | 203 | | |
181 | 204 | | |
182 | 205 | | |
| |||
200 | 223 | | |
201 | 224 | | |
202 | 225 | | |
203 | | - | |
| 226 | + | |
204 | 227 | | |
| 228 | + | |
205 | 229 | | |
206 | 230 | | |
207 | 231 | | |
208 | 232 | | |
209 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
210 | 236 | | |
211 | 237 | | |
212 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
96 | 140 | | |
97 | 141 | | |
98 | 142 | | |
| |||
0 commit comments