Ghost/ghost/admin/components/gh-popover-button.js
Hannah Wolfe 78088820d6 Ember cleanup: single quotes for JS
- All JS should use single quotes
2014-06-01 21:53:16 +01:00

14 lines
442 B
JavaScript

import PopoverMixin from 'ghost/mixins/popover-mixin';
var PopoverButton = Ember.Component.extend(PopoverMixin, {
tagName: 'button',
/*matches with the popover this button toggles*/
popoverName: null,
/*Notify popover service this popover should be toggled*/
click: function (event) {
this._super(event);
this.get('popover').togglePopover(this.get('popoverName'));
}
});
export default PopoverButton;