Allow recipe comp. to show I/O inventories

This commit is contained in:
Andrew Miner
2017-07-19 19:35:16 -07:00
parent 0e6d75ec9b
commit 8b0cd71bb5
8 changed files with 99 additions and 28 deletions
+4
View File
@@ -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