Ensure changing quantities outdates plans

This commit is contained in:
Andrew Miner
2017-07-11 14:24:13 -07:00
parent ccb2cad516
commit dac1a8dceb
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -90,4 +90,5 @@ module.exports = class CraftPage extends Observable
_onWantChanged: ->
@triggerPropertyChange "isDirty", @_isDirty, true, ->
@_isDirty = true
if @want.isEmpty then @triggerPropertyChange "currentPlan", @_currentPlan, null
@@ -52,7 +52,6 @@ module.exports = class CraftPageController extends PageController
onRemoveFromWant: (item)->
@model.want.remove item
@onWantInventoryChanged()
onSampleClicked: (event)->
$el = $(event.target)