ember-mobiledoc-editor icon indicating copy to clipboard operation
ember-mobiledoc-editor copied to clipboard

only pass appropriate actions to cards, depending on mode

Open bantic opened this issue 9 years ago • 0 comments

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.).

bantic avatar Oct 15 '15 20:10 bantic