Browse Source

added disable property to Button

pull/479/head
Arthur Almeida 8 years ago
parent
commit
dc6692038e
  1. 1
      src/panels/model/Button.js
  2. 4
      test/specs/panels/model/PanelModels.js

1
src/panels/model/Button.js

@ -14,6 +14,7 @@ module.exports = Backbone.Model.extend({
dragDrop: false,
runDefaultCommand: true,
stopDefaultCommand: false,
disable: false,
},
initialize(options) {

4
test/specs/panels/model/PanelModels.js

@ -33,6 +33,10 @@ module.exports = {
expect(obj.get('buttons').length).toEqual(1);
});
it('Has a disable attribute with default value as false', () => {
expect(obj.get('disable')).toEqual(false);
});
});
describe('Buttons', () => {

Loading…
Cancel
Save