Correct several small bugs found in user testing

* The "Show Plan for Tools" link should open a new window each time
    it is clicked (i.e., don't re-use the same window)
  * Further customize the title of the crafting page to give some
    indication of what is being crafted
This commit is contained in:
Andrew Miner
2016-04-25 21:54:28 -07:00
parent 31f4594928
commit 2c77972073
3 changed files with 20 additions and 3 deletions
+12
View File
@@ -141,6 +141,18 @@ module.exports = class Inventory extends BaseModel
@trigger c.event.change, this
return this
toDescription: ->
return null if @isEmpty
return null unless @modPack?
item = @modPack.findItem @_itemSlugs[0]
extras = @_itemSlugs.length - 1
result = "#{item.name}"
if extras > 0 then result += " and #{extras} more..."
return result
# Parsing Methods ##############################################################################
parse: (data)->