Skip to content

Commit

Permalink
[#13 Remove jQuery
Browse files Browse the repository at this point in the history
* [x] ma-create-media guards against disabled button
  • Loading branch information
0xadada committed Feb 6, 2018
1 parent 6e9b15a commit 4aa5c32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/ma-create-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export default Component.extend({

actions: {
add(changeset) {
this._createMedia(changeset);
let isDisabled = get(this, 'isDisabled');
if (!isDisabled) this._createMedia(changeset);
}
}
});

0 comments on commit 4aa5c32

Please sign in to comment.