ember-mobiledoc-editor
ember-mobiledoc-editor copied to clipboard
only pass appropriate actions to cards, depending on mode
component cards currently get the full set of component actions (editCard
, saveCard
, etc), but some of the actions are meaningless depending on the card's current mode. If the card is in edit mode, the editCard
action is meaningless, for example.
An improvement would be to only pass the appropriate actions and/or give a meaningful error message if the action does not make sense (calling editCard
when card is in edit mode, e.g.).