diff --git a/src/client/site/item_page/item_page_controller.coffee b/src/client/site/item_page/item_page_controller.coffee index 3c87dda9d..83090c0db 100644 --- a/src/client/site/item_page/item_page_controller.coffee +++ b/src/client/site/item_page/item_page_controller.coffee @@ -101,11 +101,12 @@ module.exports = class ItemPageController extends PageController endEditing: => @_endEditingDescription() enterFeedback: @_enterFeedback - @$aboutImage = @$('.about img') - @$name = @$('.about .title') - @$officialLink = @$('.about a.officialLink') - @$sourceModLink = @$('.about a.sourceMod') - @$aboutLinks = @$('.about .right') + @$aboutImage = @$('.about img') + @$craftingPlanButton = @$('.button.craftingPlan') + @$name = @$('.about .title') + @$officialLink = @$('.about a.officialLink') + @$sourceModLink = @$('.about a.sourceMod') + @$aboutLinks = @$('.about .right') @$multiblockSection = @$('section.multiblock') @$recipeContainer = @$('section.recipes .panel') @@ -135,6 +136,11 @@ module.exports = class ItemPageController extends PageController else @hide @$aboutLinks + if @model.item.isCraftable + @show @$craftingPlanButton + else + @hide @$craftingPlanButton + @show() else @hide()