@onehat/ui 0.3.291 → 0.3.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -81,6 +81,8 @@ function AttachmentsElement(props) {
|
|
|
81
81
|
clickable = true,
|
|
82
82
|
confirmBeforeDelete = false,
|
|
83
83
|
extraUploadData = {},
|
|
84
|
+
expandedMax = EXPANDED_MAX,
|
|
85
|
+
collapsedMax = COLLAPSED_MAX,
|
|
84
86
|
|
|
85
87
|
// parentContainer
|
|
86
88
|
selectorSelected,
|
|
@@ -231,7 +233,7 @@ function AttachmentsElement(props) {
|
|
|
231
233
|
});
|
|
232
234
|
}
|
|
233
235
|
Repository.filter(filters);
|
|
234
|
-
Repository.setPageSize(showAll ?
|
|
236
|
+
Repository.setPageSize(showAll ? expandedMax : collapsedMax);
|
|
235
237
|
await Repository.load();
|
|
236
238
|
|
|
237
239
|
buildFiles();
|
|
@@ -286,7 +288,7 @@ function AttachmentsElement(props) {
|
|
|
286
288
|
</Box>;
|
|
287
289
|
})}
|
|
288
290
|
</Row>
|
|
289
|
-
{Repository.total <=
|
|
291
|
+
{Repository.total <= collapsedMax ? null :
|
|
290
292
|
<Button
|
|
291
293
|
onPress={toggleShowAll}
|
|
292
294
|
mt={4}
|