addon/components/bsy-button/close.js in bootstrap-bookingsync-sass-1.0.5 vs addon/components/bsy-button/close.js in bootstrap-bookingsync-sass-2.0.0
- old
+ new
@@ -1,12 +1,13 @@
-import Ember from 'ember';
+import Component from '@ember/component';
import layout from '../../templates/components/bsy-button/close';
-export default Ember.Component.extend({
+export default Component.extend({
layout,
- tagName: "button",
- classNames: "btn btn-secondary-inverse btn-round",
- click: function() {
- this.$().prop('disabled', 'disabled');
+ tagName: 'button',
+ classNames: 'btn btn-secondary-inverse btn-round',
+
+ click() {
+ this.element.disabled = true;
}
});