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:
@@ -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)->
|
||||
|
||||
Reference in New Issue
Block a user