Allow recipe comp. to show I/O inventories
This commit is contained in:
@@ -57,6 +57,10 @@
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.view__recipe + .view__recipe {
|
||||
margin-top: $size-margin-large;
|
||||
}
|
||||
}
|
||||
|
||||
@include screen-size(mobile) {
|
||||
|
||||
@@ -229,17 +229,21 @@ module.exports = class ItemPageController extends PageController
|
||||
|
||||
for recipe in recipes
|
||||
controller = @_recipeControllers[index]
|
||||
model = new RecipeDisplay
|
||||
recipe: recipe
|
||||
showInputInventory: true
|
||||
showOutputInventory: true
|
||||
if not controller?
|
||||
controller = new RecipeController
|
||||
imageLoader: @_imageLoader
|
||||
modPack: @_modPack
|
||||
model: new RecipeDisplay recipe:recipe
|
||||
model: model
|
||||
router: @_router
|
||||
@_recipeControllers.push controller
|
||||
@$recipeContainer.append controller.$el
|
||||
controller.render()
|
||||
else
|
||||
controller.model = new RecipeDisplay recipe:recipe
|
||||
controller.model = model
|
||||
index++
|
||||
|
||||
@show @$recipesSection
|
||||
|
||||
Reference in New Issue
Block a user