{
- installedAddons.catalog
+ displayedCatalog
.filter(searchFilterPredicate)
- .map((addon, index) => (
-
- ))
+ .map((addon, index, arr) => {
+ const isProtected = !!addon.flags?.protected;
+ const prev = arr[index - 1];
+ const next = arr[index + 1];
+ const canMoveUp = canReorder && !isProtected && prev && !prev.flags?.protected;
+ const canMoveDown = canReorder && !isProtected && !!next && !next.flags?.protected;
+ return (
+
+ );
+ })
}
:
@@ -318,4 +418,4 @@ const AddonsFallback = () => (